/* ==========================================================================
   WooCommerce — Product Cards, Shop Page, Single Product, Cart, Checkout
   ========================================================================== */

/* Product Grid — override WooCommerce default float layout */
ul.products,
.woocommerce ul.products,
.woocommerce-page ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Reset WooCommerce default float/width on product items */
ul.products li.product,
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
ul.products .product-card {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    clear: none !important;
}

/* Category row-break: a full-width, zero-height grid item that forces the next
   product category onto a fresh row so no row mixes two categories. */
ul.products li.lh-cat-break {
    grid-column: 1 / -1;
    height: 0;
    min-height: 0;
    padding: 0 !important;
    margin: 0 !important;
    border: 0;
    background: none;
    list-style: none;
    pointer-events: none;
}

/* Product Card */
.product-card {
    background: var(--lh-white);
    border-radius: var(--lh-radius-lg);
    overflow: hidden;
    transition: all var(--lh-transition);
    border: 1px solid var(--lh-gray-medium);
}

.product-card:hover {
    box-shadow: var(--lh-shadow-lg);
    border-color: transparent;
    transform: translateY(-4px);
}

.product-card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--lh-gray-light);
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--lh-transition);
}

.product-card:hover .product-card__image img {
    transform: scale(1.05);
}

.product-card__image-link {
    display: block;
    width: 100%;
    height: 100%;
}

/* Sale badge */
.onsale,
.badge-sale {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--lh-red);
    color: var(--lh-white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--lh-radius-sm);
    z-index: 2;
    line-height: 1.3;
}

/* Wishlist button — hidden by default, reveals on card hover */
.lh-yith-wishlist-wrapper {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity var(--lh-transition-fast), transform var(--lh-transition-fast);
    pointer-events: none;
}

.product-card:hover .lh-yith-wishlist-wrapper {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.product-card__info {
    padding: 16px;
}

.product-card__categories {
    font-size: 0.75rem;
    color: var(--lh-gray);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card__categories a {
    color: var(--lh-gray);
}

.product-card__categories a:hover {
    color: var(--lh-primary);
}

.product-card__title {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__title a {
    color: var(--lh-black);
}

.product-card__title a:hover {
    color: var(--lh-primary);
}

.product-card__price {
    margin-bottom: 8px;
}

.product-card__price .price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--lh-primary);
}

.product-card__price .price del {
    color: var(--lh-gray);
    font-size: 0.875rem;
    font-weight: 400;
    margin-right: 8px;
}

.product-card__price .price ins {
    text-decoration: none;
    color: var(--lh-red);
    font-weight: 700;
}

.product-card__rating {
    margin-bottom: 10px;
}

.product-card__rating .star-rating {
    color: #f5a623;
    font-size: 0.875rem;
}

.product-card__rating-count {
    font-size: 0.75rem;
    color: var(--lh-gray);
    margin-left: 4px;
    vertical-align: middle;
}

.product-card__rating-none {
    font-size: 0.75rem;
    color: var(--lh-gray);
}

.product-card__actions {
    margin-top: 12px;
}

.product-card__actions .button,
.product-card__actions .add_to_cart_button,
.product-card__actions .ajax_add_to_cart {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background: var(--lh-primary);
    color: var(--lh-white);
    border: none;
    border-radius: var(--lh-radius);
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--lh-transition);
    text-decoration: none;
}

.product-card__actions .button:hover,
.product-card__actions .add_to_cart_button:hover {
    background: var(--lh-primary-dark);
}

.product-card__actions .added_to_cart {
    display: block;
    text-align: center;
    margin-top: 8px;
    font-size: 0.8125rem;
    color: var(--lh-green);
    font-weight: 500;
}

/* Shop Page */
/* Always keep breathing room above the footer, whether or not pagination renders
   (the catalogue can fit on a single page, in which case there is no pagination). */
.shop-page {
    padding-bottom: 64px;
}

.shop-page .shop-header {
    margin-bottom: 32px;
}

.shop-title {
    font-size: 2rem;
    margin-bottom: 12px;
}

.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--lh-gray-medium);
}

.woocommerce-result-count {
    color: var(--lh-gray);
    font-size: 0.875rem;
    margin: 0;
}

.woocommerce-ordering select {
    padding: 8px 32px 8px 12px;
    border: 1px solid var(--lh-gray-medium);
    border-radius: var(--lh-radius-sm);
    font-size: 0.875rem;
    font-family: var(--lh-font-body);
    background: var(--lh-white);
    cursor: pointer;
}

/* WooCommerce pagination */
.woocommerce-pagination {
    margin-top: 48px;
    text-align: center;
}

.woocommerce-pagination ul {
    display: flex;
    justify-content: center;
    gap: 8px;
    list-style: none;
    padding: 0;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--lh-gray-medium);
    border-radius: var(--lh-radius-sm);
    font-size: 0.875rem;
    color: var(--lh-gray-dark);
    transition: all var(--lh-transition);
}

.woocommerce-pagination ul li a:hover,
.woocommerce-pagination ul li span.current {
    background: var(--lh-primary);
    border-color: var(--lh-primary);
    color: var(--lh-white);
}

/* Single Product */
.single-product-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.single-product-gallery {
    position: relative;
}

.single-product-gallery .woocommerce-product-gallery {
    width: 100% !important;
}

.single-product-gallery img {
    border-radius: var(--lh-radius-lg);
}

/* Thumbnail grid — override WooCommerce flex-control-thumbs default */
.woocommerce-product-gallery .flex-control-thumbs {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 12px;
    padding: 0;
    list-style: none;
}

.woocommerce-product-gallery .flex-control-thumbs li {
    margin: 0;
    padding: 0;
}

.woocommerce-product-gallery .flex-control-thumbs li img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--lh-radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color var(--lh-transition), opacity var(--lh-transition);
    opacity: 0.7;
}

.woocommerce-product-gallery .flex-control-thumbs li img:hover,
.woocommerce-product-gallery .flex-control-thumbs li img.flex-active {
    border-color: var(--lh-primary);
    opacity: 1;
}

.single-product-summary .product_title {
    font-family: 'Arial Black', Arial, sans-serif;
    font-weight: 900;
    font-size: 44px;
    line-height: 1.15;
    margin-bottom: 12px;
    color: var(--lh-primary);
}

/* Teal heading color across WooCommerce pages — matches the page-content.css
   treatment used on /privacy-policy/ and the homepage. */
.shop-title,
.woocommerce-products-header__title,
.related.products > h2,
.up-sells > h2,
.cross-sells > h2,
.woocommerce-tabs .panel h2,
.woocommerce-cart h1,
.woocommerce-cart h2,
.woocommerce-cart h3,
.woocommerce-checkout h1,
.woocommerce-checkout h2,
.woocommerce-checkout h3,
.cart_totals h2,
.cross-sells h2 {
    color: var(--lh-primary);
}

.single-product-summary .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--lh-primary);
    margin-bottom: 16px;
}

.single-product-summary .price del {
    color: var(--lh-gray);
    font-size: 1.125rem;
}

.single-product-summary .woocommerce-product-details__short-description {
    font-family: Arial, sans-serif;
    font-weight: 400;
    font-size: 20px;
    color: var(--lh-gray);
    line-height: 1.5;
    margin-bottom: 24px;
}

/* Responsive taper for the product hero title + subtitle (7.16 #4) */
@media (max-width: 1199px) {
    .single-product-summary .product_title { font-size: 36px; }
    .single-product-summary .woocommerce-product-details__short-description { font-size: 18px; }
}

@media (max-width: 767px) {
    .single-product-summary .product_title { font-size: 28px; }
    .single-product-summary .woocommerce-product-details__short-description { font-size: 16px; }
}

/* Add to cart form */
.single-product-summary .cart {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.single-product-summary .quantity .qty {
    width: 80px;
    padding: 12px;
    border: 2px solid var(--lh-gray-medium);
    border-radius: var(--lh-radius);
    font-size: 1rem;
    text-align: center;
    font-family: var(--lh-font-body);
}

.single-product-summary .single_add_to_cart_button {
    flex: 1;
    padding: 14px 32px;
    background: var(--lh-primary);
    color: var(--lh-white);
    border: none;
    border-radius: var(--lh-radius);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--lh-transition);
}

.single-product-summary .single_add_to_cart_button:hover {
    background: var(--lh-primary-dark);
}

/* Product trust badges on single page */
.product-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid var(--lh-gray-medium);
    margin-top: 24px;
}

.product-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--lh-gray);
}

/* Product meta */
.product_meta {
    font-size: 0.875rem;
    color: var(--lh-gray);
    padding-top: 16px;
    border-top: 1px solid var(--lh-gray-medium);
}

.product_meta > span {
    display: block;
    margin-bottom: 6px;
}

.product_meta a {
    color: var(--lh-primary);
}

/* Tabs */
.woocommerce-tabs {
    margin-top: 48px;
    margin-bottom: 48px;
}

.woocommerce-tabs .tabs {
    display: flex;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 2px solid var(--lh-gray-medium);
}

.woocommerce-tabs .tabs li {
    margin-bottom: -2px;
}

.woocommerce-tabs .tabs li a {
    display: block;
    padding: 12px 24px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--lh-gray);
    border-bottom: 2px solid transparent;
    transition: all var(--lh-transition);
}

.woocommerce-tabs .tabs li a:hover {
    color: var(--lh-primary);
}

.woocommerce-tabs .tabs li.active a {
    color: var(--lh-primary);
    border-bottom-color: var(--lh-primary);
}

.woocommerce-tabs .panel {
    padding: 32px 0;
}

.woocommerce-tabs .panel h2 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

/* Related products */
.related.products {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--lh-gray-medium);
}

.related.products > h2 {
    font-size: 1.5rem;
    margin-bottom: 24px;
}

/* Star rating */
.star-rating {
    display: inline-flex;
    overflow: hidden;
    position: relative;
    height: 1.2em;
    width: 5.4em;
    font-size: 0.875rem;
    line-height: 1.2;
    color: #f5a623;
}

.star-rating::before {
    content: "\2605\2605\2605\2605\2605";
    color: #e0e0e0;
}

.star-rating span {
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
}

.star-rating span::before {
    content: "\2605\2605\2605\2605\2605";
    color: #f5a623;
}

/* Cart and Checkout base styles */
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce {
    max-width: 100%;
}

.woocommerce table.shop_table {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--lh-gray-medium);
    text-align: left;
}

.woocommerce table.shop_table th {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--lh-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Checkout form */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--lh-gray-medium);
    border-radius: var(--lh-radius);
    font-size: 0.9375rem;
    font-family: var(--lh-font-body);
    transition: border-color var(--lh-transition);
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
    border-color: var(--lh-primary);
    outline: none;
}

.woocommerce form .form-row label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--lh-gray-dark);
}

/* Buttons */
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
    background: var(--lh-primary);
    color: var(--lh-white);
    border: none;
    border-radius: var(--lh-radius);
    padding: 12px 24px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--lh-transition);
    font-family: var(--lh-font-body);
}

.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
    background: var(--lh-primary-dark);
    color: var(--lh-white);
}

/* Notices */
.woocommerce-message,
.woocommerce-info {
    padding: 12px 20px;
    background: var(--lh-primary-light);
    border-left: 4px solid var(--lh-primary);
    border-radius: var(--lh-radius-sm);
    margin-bottom: 24px;
    font-size: 0.9375rem;
}

.woocommerce-error {
    padding: 12px 20px;
    background: #fde8e8;
    border-left: 4px solid var(--lh-red);
    border-radius: var(--lh-radius-sm);
    margin-bottom: 24px;
    list-style: none;
}

/* ==========================================================================
   Reviews — Summary Widget + Review Cards
   ========================================================================== */

/* Rating summary widget */
.lh-reviews-summary {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    padding: 24px;
    background: var(--lh-gray-light);
    border-radius: var(--lh-radius-lg);
    margin-bottom: 32px;
}

.lh-reviews-summary__score {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 96px;
    text-align: center;
}

.lh-reviews-summary__number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    color: var(--lh-black);
    margin-bottom: 6px;
}

.lh-reviews-summary__total {
    font-size: 0.75rem;
    color: var(--lh-gray);
    margin-top: 4px;
}

.lh-reviews-summary__bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

.lh-reviews-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8125rem;
}

.lh-reviews-bar-label {
    width: 32px;
    text-align: right;
    color: var(--lh-gray-dark);
    white-space: nowrap;
    flex-shrink: 0;
}

.lh-reviews-bar-track {
    flex: 1;
    height: 8px;
    background: var(--lh-gray-medium);
    border-radius: 9999px;
    overflow: hidden;
}

.lh-reviews-bar-fill {
    height: 100%;
    background: #f5a623;
    border-radius: 9999px;
}

.lh-reviews-bar-count {
    width: 24px;
    color: var(--lh-gray);
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* Reviews section title */
.woocommerce-Reviews-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--lh-black);
    margin-bottom: 24px;
}

/* Review list */
.commentlist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Individual review card */
.lh-review-card {
    background: var(--lh-white);
    border: 1px solid var(--lh-gray-medium);
    border-radius: var(--lh-radius-lg);
    padding: 20px 24px;
}

.lh-review-card__header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
}

.lh-review-card__avatar img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: block;
}

.lh-review-card__meta .woocommerce-review__author {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--lh-black);
}

.lh-review-card__meta .woocommerce-review__dash {
    display: none;
}

.lh-review-card__meta .woocommerce-review__published-date {
    font-size: 0.8125rem;
    color: var(--lh-gray);
    display: block;
    margin-top: 2px;
}

.lh-review-card__meta .star-rating {
    margin-bottom: 4px;
}

.lh-review-card__meta .woocommerce-review__verified {
    font-size: 0.75rem;
    color: #16a34a;
    font-weight: 500;
    display: inline-block;
    margin-top: 2px;
}

.lh-review-card__body .description {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--lh-gray-dark);
    margin: 0;
}

/* Review form wrapper */
#review_form_wrapper {
    margin-top: 40px;
    padding: 32px;
    background: var(--lh-gray-light);
    border-radius: var(--lh-radius-lg);
    border: 1px solid var(--lh-gray-medium);
}

#review_form .comment-reply-title {
    font-size: 1.25rem;
    font-weight: 700;
    display: block;
    margin-bottom: 24px;
    color: var(--lh-black);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--lh-gray-medium);
}

/* Form fields */
#review_form .comment-form-author,
#review_form .comment-form-email,
#review_form .comment-form-comment {
    margin-bottom: 16px;
}

#review_form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--lh-gray-dark);
}

#review_form input[type="text"],
#review_form input[type="email"],
#review_form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--lh-gray-medium);
    border-radius: var(--lh-radius);
    font-size: 0.9375rem;
    font-family: var(--lh-font-body);
    color: var(--lh-black);
    background: var(--lh-white);
    transition: border-color var(--lh-transition), box-shadow var(--lh-transition);
    box-sizing: border-box;
}

#review_form input[type="text"]:focus,
#review_form input[type="email"]:focus,
#review_form textarea:focus {
    outline: none;
    border-color: var(--lh-primary);
    box-shadow: 0 0 0 3px rgba(0,177,169,0.12);
}

#review_form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Submit button */
#review_form #submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--lh-primary);
    color: var(--lh-white);
    border: none;
    border-radius: var(--lh-radius);
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: var(--lh-font-body);
    cursor: pointer;
    transition: background var(--lh-transition);
    margin-top: 4px;
}

#review_form #submit:hover {
    background: var(--lh-primary-dark);
}

/* ---- Star Rating Input ---- */
/* WooCommerce JS creates p.stars > span > a.star-N and adds p.stars.star-N on hover */

.comment-form-rating {
    margin-bottom: 20px;
}

.comment-form-rating label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--lh-gray-dark);
}

/* Hide the select (WC JS hides it, but belt-and-suspenders) */
.comment-form-rating select#rating {
    display: none !important;
}

/* Stars container */
.comment-form-rating p.stars {
    display: block;
    margin: 0;
    line-height: 1;
}

.comment-form-rating p.stars span {
    display: inline-flex;
    gap: 4px;
}

/* Individual star link — hide text, show unicode star via ::before */
.comment-form-rating p.stars a {
    display: inline-block;
    position: relative;
    width: 2rem;
    height: 2rem;
    text-indent: -9999px;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
}

.comment-form-rating p.stars a::before {
    content: "★";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    text-indent: 0;
    font-size: 1.75rem;
    line-height: 1;
    color: #d1d5db;
    transition: color 0.12s ease, transform 0.12s ease;
}

/* Hover state: fill stars up to hovered position.
   WooCommerce JS adds class star-N to the p.stars parent on mouseenter. */
.comment-form-rating p.stars.star-1 a.star-1::before,
.comment-form-rating p.stars.star-2 a.star-1::before,
.comment-form-rating p.stars.star-2 a.star-2::before,
.comment-form-rating p.stars.star-3 a.star-1::before,
.comment-form-rating p.stars.star-3 a.star-2::before,
.comment-form-rating p.stars.star-3 a.star-3::before,
.comment-form-rating p.stars.star-4 a.star-1::before,
.comment-form-rating p.stars.star-4 a.star-2::before,
.comment-form-rating p.stars.star-4 a.star-3::before,
.comment-form-rating p.stars.star-4 a.star-4::before,
.comment-form-rating p.stars.star-5 a.star-1::before,
.comment-form-rating p.stars.star-5 a.star-2::before,
.comment-form-rating p.stars.star-5 a.star-3::before,
.comment-form-rating p.stars.star-5 a.star-4::before,
.comment-form-rating p.stars.star-5 a.star-5::before {
    color: #f5a623;
    transform: scale(1.1);
}

/* Selected state: WooCommerce adds .selected to p.stars + .active to clicked a */
.comment-form-rating p.stars.selected a.active::before {
    color: #f5a623;
    transform: scale(1.15);
}

.comment-form-rating p.stars.selected.star-1 a.star-1::before,
.comment-form-rating p.stars.selected.star-2 a.star-1::before,
.comment-form-rating p.stars.selected.star-2 a.star-2::before,
.comment-form-rating p.stars.selected.star-3 a.star-1::before,
.comment-form-rating p.stars.selected.star-3 a.star-2::before,
.comment-form-rating p.stars.selected.star-3 a.star-3::before,
.comment-form-rating p.stars.selected.star-4 a.star-1::before,
.comment-form-rating p.stars.selected.star-4 a.star-2::before,
.comment-form-rating p.stars.selected.star-4 a.star-3::before,
.comment-form-rating p.stars.selected.star-4 a.star-4::before,
.comment-form-rating p.stars.selected.star-5 a.star-1::before,
.comment-form-rating p.stars.selected.star-5 a.star-2::before,
.comment-form-rating p.stars.selected.star-5 a.star-3::before,
.comment-form-rating p.stars.selected.star-5 a.star-4::before,
.comment-form-rating p.stars.selected.star-5 a.star-5::before {
    color: #f5a623;
}

/* Required asterisk */
.comment-form-rating .required,
#review_form .required {
    color: var(--lh-red);
}

/* Must-log-in message */
#review_form .must-log-in {
    font-size: 0.9375rem;
    color: var(--lh-gray);
    padding: 12px 0;
}

#review_form .must-log-in a {
    color: var(--lh-primary);
}

.woocommerce-noreviews {
    color: var(--lh-gray);
    font-style: italic;
    padding: 16px 0;
}

.woocommerce-verification-required {
    color: var(--lh-gray);
    font-size: 0.9375rem;
    padding: 16px 0;
}

/* ==========================================================================
   Cart totals sidebar — client 8.18 review
   The default WooCommerce output has no theme styling here, so the
   "Proceed to Checkout" renders as a plain teal underlined link. Turn the
   sidebar into a bordered card and the CTA into a full-width filled button
   so it's the obvious next action on the page.
   ========================================================================== */

.cart-collaterals .cart_totals {
    background: var(--lh-white);
    border: 1px solid var(--lh-gray-medium);
    border-radius: var(--lh-radius);
    padding: 24px;
    box-shadow: var(--lh-shadow-sm);
}

.cart-collaterals .cart_totals h2 {
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--lh-primary);
    margin: 0 0 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--lh-gray-medium);
}

.cart-collaterals .cart_totals table.shop_table {
    margin: 0;
    border: 0;
}

.cart-collaterals .cart_totals table.shop_table th,
.cart-collaterals .cart_totals table.shop_table td {
    padding: 14px 0;
    border: 0;
    border-bottom: 1px solid var(--lh-gray-medium);
    background: transparent;
    text-align: left;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.9375rem;
    color: var(--lh-gray-dark);
    vertical-align: middle;
}

.cart-collaterals .cart_totals table.shop_table th {
    font-weight: 600;
}

.cart-collaterals .cart_totals table.shop_table td {
    text-align: right;
}

/* Free-shipping-style pill values (e.g. "FREE") */
.cart-collaterals .cart_totals .amount {
    font-weight: 600;
    color: var(--lh-black);
}

/* Emphasize the total row — larger, no bottom border (rolls into the CTA) */
.cart-collaterals .cart_totals tr.order-total th,
.cart-collaterals .cart_totals tr.order-total td {
    padding-top: 18px;
    padding-bottom: 18px;
    border-bottom: 0;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--lh-black);
}

.cart-collaterals .cart_totals tr.order-total .amount,
.cart-collaterals .cart_totals tr.order-total .woocommerce-Price-amount {
    font-size: 1.375rem;
    color: var(--lh-primary);
    font-weight: 800;
}

/* Add-coupons collapsible — tighten margin above/below */
.cart-collaterals .cart_totals .coupon,
.cart-collaterals .cart_totals .wc-block-components-panel {
    margin: 8px 0 16px;
}

/* ── Proceed-to-Checkout button — the primary visual change ────────────── */

.wc-proceed-to-checkout {
    margin-top: 20px;
    padding: 0;
}

.wc-proceed-to-checkout .checkout-button,
.wc-proceed-to-checkout a.checkout-button.button.alt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px 24px;
    background: var(--lh-primary);
    color: #fff !important;
    border: 0;
    border-radius: var(--lh-radius);
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(0, 187, 187, 0.28);
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.wc-proceed-to-checkout .checkout-button::after {
    content: "\2192"; /* → */
    display: inline-block;
    font-size: 1.125rem;
    transition: transform 0.2s ease;
}

.wc-proceed-to-checkout .checkout-button:hover,
.wc-proceed-to-checkout .checkout-button:focus-visible {
    background: var(--lh-primary-dark);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 153, 153, 0.35);
    text-decoration: none !important;
}

.wc-proceed-to-checkout .checkout-button:hover::after,
.wc-proceed-to-checkout .checkout-button:focus-visible::after {
    transform: translateX(3px);
}

.wc-proceed-to-checkout .checkout-button:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(0, 153, 153, 0.28);
}

@media (max-width: 767px) {
    .cart-collaterals .cart_totals { padding: 20px; }
    .cart-collaterals .cart_totals tr.order-total .amount,
    .cart-collaterals .cart_totals tr.order-total .woocommerce-Price-amount {
        font-size: 1.25rem;
    }
    .wc-proceed-to-checkout .checkout-button {
        padding: 16px 20px;
        font-size: 1rem;
    }
}

/* ==========================================================================
   WooCommerce BLOCKS Cart (wp:woocommerce/cart) — the /cart/ page on prod
   uses the Blocks Cart, which has an entirely different DOM from the classic
   .cart_totals / .checkout-button markup above. The rules below target the
   Blocks Cart's actual selectors so the same visual result ships regardless
   of which cart the store is configured with.
   ========================================================================== */

/* Totals sidebar container — treat both totals-block and its parent order-summary-block as the card */
.wp-block-woocommerce-cart-totals-block,
.wp-block-woocommerce-cart-order-summary-block {
    background: var(--lh-white);
    border: 1px solid var(--lh-gray-medium);
    border-radius: var(--lh-radius);
    padding: 24px;
    box-shadow: var(--lh-shadow-sm);
}

/* If both wrappers appear (blocks nest), the inner one shouldn't double-border */
.wp-block-woocommerce-cart-totals-block .wp-block-woocommerce-cart-order-summary-block {
    background: transparent;
    border: 0;
    padding: 0;
    box-shadow: none;
}

/* "CART TOTALS" heading — turn it into a real card header */
.wp-block-woocommerce-cart-totals-block h2,
.wp-block-woocommerce-cart-order-summary-block h2 {
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--lh-primary) !important;
    margin: 0 0 16px !important;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--lh-gray-medium);
}

/* Row spacing — subtotal / shipping / etc. */
.wp-block-woocommerce-cart-totals-block .wc-block-components-totals-item,
.wp-block-woocommerce-cart-order-summary-block .wc-block-components-totals-item {
    padding: 14px 0 !important;
    border-bottom: 1px solid var(--lh-gray-medium);
    font-size: 0.9375rem;
    color: var(--lh-gray-dark);
}

.wp-block-woocommerce-cart-totals-block .wc-block-components-totals-item__label,
.wp-block-woocommerce-cart-order-summary-block .wc-block-components-totals-item__label {
    font-weight: 600;
    color: var(--lh-gray-dark);
}

.wp-block-woocommerce-cart-totals-block .wc-block-components-totals-item__value,
.wp-block-woocommerce-cart-order-summary-block .wc-block-components-totals-item__value {
    font-weight: 600;
    color: var(--lh-black);
}

/* Total footer row — emphasise it: larger amount, teal, no bottom border */
.wp-block-woocommerce-cart-totals-block .wc-block-components-totals-footer-item,
.wp-block-woocommerce-cart-order-summary-block .wc-block-components-totals-footer-item {
    padding: 18px 0 !important;
    border-bottom: 0 !important;
    font-size: 1.0625rem !important;
    font-weight: 700 !important;
    color: var(--lh-black) !important;
}

.wp-block-woocommerce-cart-totals-block .wc-block-components-totals-footer-item .wc-block-formatted-money-amount,
.wp-block-woocommerce-cart-totals-block .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.wp-block-woocommerce-cart-order-summary-block .wc-block-components-totals-footer-item .wc-block-formatted-money-amount,
.wp-block-woocommerce-cart-order-summary-block .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    font-size: 1.375rem;
    color: var(--lh-primary) !important;
    font-weight: 800;
}

/* Coupon collapsible — tighten margins */
.wp-block-woocommerce-cart-totals-block .wc-block-components-totals-coupon,
.wp-block-woocommerce-cart-order-summary-block .wc-block-components-totals-coupon {
    margin: 8px 0 16px;
}

/* ── Proceed-to-Checkout BUTTON in the Blocks Cart ──────────────────────
   The block renders a WP core button block: <div class="wp-block-button">
   <a class="wp-block-button__link wp-element-button">Proceed to Checkout</a>.
   Target both the anchor + any button variant + wp-element-button fallback,
   with !important because WC Blocks + core button styles use high-specificity
   selectors + inline styles for typography. */

.wp-block-woocommerce-proceed-to-checkout-block {
    margin-top: 20px;
    padding: 0;
    min-height: 0;
    background: transparent !important;
    border: 0 !important;
}

.wp-block-woocommerce-proceed-to-checkout-block .wp-block-button {
    width: 100%;
    margin: 0;
}

.wp-block-woocommerce-proceed-to-checkout-block .wp-block-button__link,
.wp-block-woocommerce-proceed-to-checkout-block a.wp-block-button__link,
.wp-block-woocommerce-proceed-to-checkout-block a.wp-element-button,
.wp-block-woocommerce-proceed-to-checkout-block .wc-block-cart__submit-container a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 18px 24px !important;
    background: var(--lh-primary) !important;
    background-color: var(--lh-primary) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: var(--lh-radius) !important;
    font-size: 1.0625rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(0, 187, 187, 0.28) !important;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease !important;
    cursor: pointer !important;
}

.wp-block-woocommerce-proceed-to-checkout-block .wp-block-button__link::after,
.wp-block-woocommerce-proceed-to-checkout-block a.wp-element-button::after {
    content: "\2192"; /* → */
    display: inline-block;
    font-size: 1.125rem;
    transition: transform 0.2s ease;
}

.wp-block-woocommerce-proceed-to-checkout-block .wp-block-button__link:hover,
.wp-block-woocommerce-proceed-to-checkout-block .wp-block-button__link:focus-visible,
.wp-block-woocommerce-proceed-to-checkout-block a.wp-element-button:hover,
.wp-block-woocommerce-proceed-to-checkout-block a.wp-element-button:focus-visible {
    background: var(--lh-primary-dark) !important;
    background-color: var(--lh-primary-dark) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 153, 153, 0.35) !important;
    text-decoration: none !important;
}

.wp-block-woocommerce-proceed-to-checkout-block .wp-block-button__link:hover::after,
.wp-block-woocommerce-proceed-to-checkout-block a.wp-element-button:hover::after {
    transform: translateX(3px);
}

.wp-block-woocommerce-proceed-to-checkout-block .wp-block-button__link:active,
.wp-block-woocommerce-proceed-to-checkout-block a.wp-element-button:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(0, 153, 153, 0.28) !important;
}

@media (max-width: 767px) {
    .wp-block-woocommerce-cart-totals-block,
    .wp-block-woocommerce-cart-order-summary-block {
        padding: 20px;
    }
    .wp-block-woocommerce-cart-totals-block .wc-block-components-totals-footer-item .wc-block-formatted-money-amount,
    .wp-block-woocommerce-cart-order-summary-block .wc-block-components-totals-footer-item .wc-block-formatted-money-amount {
        font-size: 1.25rem;
    }
    .wp-block-woocommerce-proceed-to-checkout-block .wp-block-button__link,
    .wp-block-woocommerce-proceed-to-checkout-block a.wp-element-button {
        padding: 16px 20px !important;
        font-size: 1rem !important;
    }
}

/* ==========================================================================
   Checkout page (classic shortcode) — client 8.18 review
   Style the "Your order" summary + payment methods + Place Order button as a
   coherent card flow and give the Place Order clear breathing room from the
   footer.
   ========================================================================== */

/* "Your order" review-order card */
.woocommerce-checkout .woocommerce-checkout-review-order {
    background: var(--lh-white);
    border: 1px solid var(--lh-gray-medium);
    border-radius: var(--lh-radius);
    padding: 24px;
    box-shadow: var(--lh-shadow-sm);
    margin-top: 20px;
}

.woocommerce-checkout #order_review_heading {
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--lh-primary);
    margin: 30px 0 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--lh-gray-medium);
}

/* Order table — rows with clean spacing, right-aligned amounts */
.woocommerce-checkout .woocommerce-checkout-review-order-table {
    margin: 0;
    border: 0;
    width: 100%;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table th,
.woocommerce-checkout .woocommerce-checkout-review-order-table td {
    padding: 14px 0;
    border: 0;
    border-bottom: 1px solid var(--lh-gray-medium);
    background: transparent;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.9375rem;
    color: var(--lh-gray-dark);
    vertical-align: middle;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table th {
    text-align: left;
    font-weight: 600;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table td {
    text-align: right;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table thead th {
    font-weight: 700;
    color: var(--lh-black);
    padding-top: 0;
    border-bottom-width: 2px;
}

/* Total row — emphasized */
.woocommerce-checkout .woocommerce-checkout-review-order-table tr.order-total th,
.woocommerce-checkout .woocommerce-checkout-review-order-table tr.order-total td {
    padding-top: 18px;
    padding-bottom: 18px;
    border-bottom: 0;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--lh-black);
}

.woocommerce-checkout .woocommerce-checkout-review-order-table tr.order-total .amount,
.woocommerce-checkout .woocommerce-checkout-review-order-table tr.order-total .woocommerce-Price-amount {
    font-size: 1.375rem;
    color: var(--lh-primary);
    font-weight: 800;
}

/* Payment methods section — matching card */
.woocommerce-checkout #payment,
.woocommerce-checkout .woocommerce-checkout-payment {
    background: var(--lh-white);
    border: 1px solid var(--lh-gray-medium);
    border-radius: var(--lh-radius);
    padding: 24px;
    box-shadow: var(--lh-shadow-sm);
    margin-top: 20px;
}

/* Reset the method list */
.woocommerce-checkout ul.wc_payment_methods,
.woocommerce-checkout ul.payment_methods {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 0;
    background: transparent;
}

/* Each payment method — bordered card row */
.woocommerce-checkout .wc_payment_method {
    display: block;
    padding: 16px 18px;
    border: 1.5px solid var(--lh-gray-medium);
    border-radius: var(--lh-radius);
    background: var(--lh-white);
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.woocommerce-checkout .wc_payment_method:hover {
    border-color: var(--lh-primary);
}

/* Selected method — teal border + light-teal background */
.woocommerce-checkout .wc_payment_method:has(input[type="radio"]:checked) {
    border-color: var(--lh-primary);
    background: rgba(0, 187, 187, 0.05);
}

/* Radio + label row — radio, method name, then logos to the right */
.woocommerce-checkout .wc_payment_method > input[type="radio"] {
    accent-color: var(--lh-primary);
    margin-right: 10px;
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

.woocommerce-checkout .wc_payment_method > label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--lh-black);
    cursor: pointer;
    margin: 0;
    padding: 0;
    line-height: 1.4;
}

.woocommerce-checkout .wc_payment_method > label img {
    max-height: 28px;
    width: auto;
    vertical-align: middle;
}

/* The description panel that opens under the selected method */
.woocommerce-checkout .payment_box {
    margin: 12px 0 0;
    padding: 14px 16px;
    background: var(--lh-gray-light);
    border-radius: var(--lh-radius);
    border: 0;
    font-size: 0.9375rem;
    color: var(--lh-gray-dark);
    line-height: 1.55;
}

.woocommerce-checkout .payment_box::before {
    display: none; /* remove WooCommerce's default triangle pointer */
}

/* Terms & Conditions row */
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
    margin: 18px 0 10px;
    padding: 14px 16px;
    background: var(--lh-gray-light);
    border-radius: var(--lh-radius);
    font-size: 0.9375rem;
    color: var(--lh-gray-dark);
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper a {
    color: var(--lh-primary);
    font-weight: 600;
}

/* Place Order button — the primary CTA */
.woocommerce-checkout .form-row.place-order {
    margin-top: 20px;
    margin-bottom: 24px;
    padding: 0;
}

.woocommerce-checkout button#place_order,
.woocommerce-checkout .form-row.place-order button.button.alt {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 20px 32px;
    background: var(--lh-primary) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: var(--lh-radius);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(0, 187, 187, 0.28);
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.woocommerce-checkout button#place_order::after,
.woocommerce-checkout .form-row.place-order button.button.alt::after {
    content: "\2192"; /* → */
    display: inline-block;
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}

.woocommerce-checkout button#place_order:hover,
.woocommerce-checkout button#place_order:focus-visible {
    background: var(--lh-primary-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 153, 153, 0.35);
}

.woocommerce-checkout button#place_order:hover::after,
.woocommerce-checkout button#place_order:focus-visible::after {
    transform: translateX(3px);
}

.woocommerce-checkout button#place_order:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(0, 153, 153, 0.28);
}

.woocommerce-checkout button#place_order:disabled,
.woocommerce-checkout button#place_order.disabled {
    background: var(--lh-gray) !important;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.65;
    transform: none;
}

/* Extra breathing room between the last card and the footer */
.woocommerce-checkout .site-main,
.woocommerce-checkout main {
    padding-bottom: 60px;
}

/* Mobile tuning */
@media (max-width: 767px) {
    .woocommerce-checkout .woocommerce-checkout-review-order,
    .woocommerce-checkout #payment,
    .woocommerce-checkout .woocommerce-checkout-payment {
        padding: 20px;
    }
    .woocommerce-checkout .woocommerce-checkout-review-order-table tr.order-total .amount,
    .woocommerce-checkout .woocommerce-checkout-review-order-table tr.order-total .woocommerce-Price-amount {
        font-size: 1.25rem;
    }
    .woocommerce-checkout button#place_order,
    .woocommerce-checkout .form-row.place-order button.button.alt {
        padding: 18px 22px;
        font-size: 1.0625rem;
    }
    .woocommerce-checkout .wc_payment_method > label {
        flex-wrap: wrap;
        gap: 8px;
    }
    .woocommerce-checkout .wc_payment_method > label img {
        max-height: 24px;
    }
}

/* ==========================================================================
   WooCommerce "added to cart" success notice (.woocommerce-message)
   Default WC uses float:right on .wc-forward which collides with the text on
   narrow viewports. Convert to flex so the button sits cleanly beside the
   text on desktop and stacks below the text on mobile.
   ========================================================================== */

.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce .woocommerce-message,
.woocommerce-page .woocommerce-message {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 20px;
    padding: 14px 18px;
    background: var(--lh-primary-light, rgba(0, 187, 187, 0.08));
    border: 1px solid var(--lh-primary);
    border-left: 4px solid var(--lh-primary);
    border-radius: var(--lh-radius);
    color: var(--lh-gray-dark);
    font-size: 0.9375rem;
    line-height: 1.5;
    margin: 0 0 20px;
    /* the notice text is a bare text-node, wrap it so flex handles it */
    text-align: left;
}

.woocommerce-notices-wrapper .woocommerce-message::before,
.woocommerce .woocommerce-message::before {
    display: none; /* strip WC's default check-mark background icon that mis-aligns */
}

.woocommerce-notices-wrapper .woocommerce-message .button,
.woocommerce-notices-wrapper .woocommerce-message .button.wc-forward,
.woocommerce .woocommerce-message .button.wc-forward {
    float: none !important;
    margin: 0 !important;
    order: 2; /* button on the right, text on the left */
    flex: 0 0 auto;
    padding: 10px 20px;
    background: var(--lh-primary) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: var(--lh-radius) !important;
    font-size: 0.9375rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-decoration: none !important;
    transition: background-color 0.15s ease, transform 0.15s ease;
    cursor: pointer;
    white-space: nowrap;
}

.woocommerce-notices-wrapper .woocommerce-message .button:hover,
.woocommerce-notices-wrapper .woocommerce-message .button:focus-visible {
    background: var(--lh-primary-dark) !important;
    transform: translateY(-1px);
}

@media (max-width: 767px) {
    .woocommerce-notices-wrapper .woocommerce-message,
    .woocommerce .woocommerce-message,
    .woocommerce-page .woocommerce-message {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .woocommerce-notices-wrapper .woocommerce-message .button,
    .woocommerce .woocommerce-message .button.wc-forward {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
        order: 3; /* text on top, button underneath */
    }
}
