/* ======================================
   REEMCO SINGLE PRODUCT — Premium Redesign
   File: reemco-product.css
   Targets: .single-product body class
   ====================================== */

/* ==========================================
   BREADCRUMB
   ========================================== */
.single-product .woocommerce-breadcrumb {
    font-family: 'Cairo', sans-serif;
    font-size: 0.82rem;
    color: #999;
    padding: 15px 0;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.single-product .woocommerce-breadcrumb a {
    color: #C4A265;
    text-decoration: none;
    transition: color 0.2s;
}

.single-product .woocommerce-breadcrumb a:hover {
    color: #8A7238;
}

/* ==========================================
   PRODUCT SUMMARY AREA (Image + Details)
   ========================================== */
.single-product div.product {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
}

/* — Gallery — */
.single-product .woocommerce-product-gallery {
    background: #f8f9fb;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.05);
}

.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image img {
    border-radius: 18px;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs {
    padding: 12px 15px;
    gap: 8px;
    display: flex;
    justify-content: center;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs li {
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs li img {
    border-radius: 8px;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs li img:hover,
.single-product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active {
    opacity: 1;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs li:hover {
    border-color: rgba(196, 162, 101, 0.4);
}

/* — Sale Badge — */
.single-product .onsale {
    background: linear-gradient(135deg, #C4A265, #A88B4A) !important;
    color: #fff !important;
    border-radius: 10px !important;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 16px !important;
    min-height: auto !important;
    min-width: auto !important;
    line-height: 1.6 !important;
    box-shadow: 0 4px 15px rgba(196, 162, 101, 0.35);
    z-index: 10;
}

/* — Product Title — */
.single-product .product_title.entry-title {
    font-family: 'Cairo', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #1B5E3B;
    line-height: 1.4;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

/* — Category Tags — */
.single-product .posted_in {
    font-size: 0.82rem;
    color: #888;
    margin-bottom: 15px;
    display: block;
}

.single-product .posted_in a {
    display: inline-block;
    background: rgba(196, 162, 101, 0.1);
    border: 1px solid rgba(196, 162, 101, 0.2);
    color: #C4A265;
    padding: 3px 14px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.78rem;
    transition: all 0.25s ease;
    margin-left: 4px;
}

.single-product .posted_in a:hover {
    background: #C4A265;
    color: #fff;
}

/* — Price — */
.single-product .price {
    font-family: 'Cairo', sans-serif;
    font-size: 1.8rem !important;
    font-weight: 700;
    color: #1B5E3B;
    margin-bottom: 18px !important;
    display: flex;
    align-items: center;
    gap: 12px;
    direction: ltr;
    justify-content: flex-end;
}

.single-product .price del {
    font-size: 1.1rem;
    color: #bbb;
    font-weight: 400;
    text-decoration: line-through;
}

.single-product .price ins {
    text-decoration: none;
    color: #C4A265;
    font-weight: 700;
}

.single-product .price .woocommerce-Price-currencySymbol {
    font-size: 0.7em;
    font-weight: 400;
    color: #999;
}

/* — Free Shipping text — */
.single-product .price+span,
.single-product .woocommerce-Price-amount+span {
    font-size: 0.82rem;
    color: #2ecc71;
    font-weight: 600;
}

/* — Short Description — */
.single-product .woocommerce-product-details__short-description {
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    color: #555;
    line-height: 2;
    padding: 20px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 22px;
}

/* ==========================================
   QUANTITY + ADD TO CART
   ========================================== */
.single-product .quantity {
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    transition: border-color 0.25s ease;
}

.single-product .quantity:hover {
    border-color: #C4A265;
}

.single-product .quantity .qty {
    width: 55px;
    text-align: center;
    border: none;
    font-family: 'Cairo', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1B5E3B;
    padding: 10px 0;
    background: transparent;
    outline: none;
}

.single-product .quantity .qty::-webkit-inner-spin-button,
.single-product .quantity .qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.single-product .quantity .minus,
.single-product .quantity .plus {
    background: transparent;
    border: none;
    width: 40px;
    height: 100%;
    font-size: 1.1rem;
    color: #999;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.single-product .quantity .minus:hover,
.single-product .quantity .plus:hover {
    color: #C4A265;
    background: rgba(196, 162, 101, 0.06);
}

.single-product .single_add_to_cart_button.button {
    background: linear-gradient(135deg, #1B5E3B 0%, #143D2B 100%) !important;
    color: #fff !important;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    padding: 14px 40px !important;
    border-radius: 12px !important;
    border: none;
    cursor: pointer;
    transition: all 0.35s ease;
    box-shadow: 0 4px 15px rgba(26, 26, 46, 0.2);
    letter-spacing: 0.3px;
}

.single-product .single_add_to_cart_button.button:hover {
    background: linear-gradient(135deg, #C4A265, #A88B4A) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(196, 162, 101, 0.35);
}

/* ==========================================
   PRODUCT META (SKU, tags)
   ========================================== */
.single-product .product_meta {
    font-family: 'Cairo', sans-serif;
    font-size: 0.85rem;
    color: #999;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 22px;
}

.single-product .product_meta a {
    color: #C4A265;
    text-decoration: none;
    transition: color 0.2s;
}

.single-product .product_meta a:hover {
    color: #8A7238;
}

/* ==========================================
   TRUST BADGES (below add to cart)
   ========================================== */
.rc-product-trust-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.rc-product-trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.78rem;
    color: #666;
    line-height: 1.4;
}

.rc-product-trust-badge i {
    color: #C4A265;
    font-size: 1rem;
    flex-shrink: 0;
}

/* ==========================================
   PRODUCT TABS
   ========================================== */
.single-product .woocommerce-tabs {
    font-family: 'Cairo', sans-serif;
    margin-top: 60px;
}

.single-product .woocommerce-tabs ul.tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #eee;
    padding: 0;
    margin-bottom: 35px;
    list-style: none;
}

.single-product .woocommerce-tabs ul.tabs li {
    border: none !important;
    background: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.single-product .woocommerce-tabs ul.tabs li::before,
.single-product .woocommerce-tabs ul.tabs li::after {
    display: none !important;
}

.single-product .woocommerce-tabs ul.tabs li a {
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #999;
    padding: 14px 28px;
    position: relative;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.single-product .woocommerce-tabs ul.tabs li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 100%;
    height: 2px;
    background: transparent;
    transition: background 0.3s ease;
}

.single-product .woocommerce-tabs ul.tabs li.active a {
    color: #1B5E3B;
    font-weight: 700;
}

.single-product .woocommerce-tabs ul.tabs li.active a::after {
    background: #C4A265;
}

.single-product .woocommerce-tabs ul.tabs li a:hover {
    color: #1B5E3B;
}

/* Tab Content */
.single-product .woocommerce-tabs .panel {
    font-family: 'Cairo', sans-serif;
    padding: 0;
}

.single-product .woocommerce-tabs .panel h2 {
    font-family: 'Cairo', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1B5E3B;
    margin-bottom: 18px;
}

.single-product .woocommerce-tabs .panel p {
    font-size: 0.95rem;
    color: #555;
    line-height: 2;
}

/* — Hide Elementor demo content in Description tab — */
.single-product .woocommerce-tabs #tab-description>.elementor {
    display: none !important;
}

/* ==========================================
   RELATED PRODUCTS
   ========================================== */
.single-product .related.products,
.single-product .up-sells {
    font-family: 'Cairo', sans-serif;
    margin-top: 60px;
    padding-top: 50px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.single-product .related.products h2,
.single-product .up-sells h2 {
    font-family: 'Cairo', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1B5E3B;
    text-align: center;
    margin-bottom: 30px;
}

.single-product .related.products .products li.product,
.single-product .up-sells .products li.product {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.35s ease;
    background: #fff;
}

.single-product .related.products .products li.product:hover,
.single-product .up-sells .products li.product:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.08);
}

.single-product .related.products .products li.product a img,
.single-product .up-sells .products li.product a img {
    border-radius: 0;
    transition: transform 0.4s ease;
}

.single-product .related.products .products li.product:hover a img,
.single-product .up-sells .products li.product:hover a img {
    transform: scale(1.05);
}

.single-product .related.products .products li.product .woocommerce-loop-product__title,
.single-product .up-sells .products li.product .woocommerce-loop-product__title {
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 16px 4px;
}

.single-product .related.products .products li.product .price,
.single-product .up-sells .products li.product .price {
    font-size: 1rem !important;
    padding: 0 16px;
}

/* ==========================================
   STICKY ADD-TO-CART BAR
   ========================================== */
.single-product .ast-sticky-add-to-cart {
    font-family: 'Cairo', sans-serif;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.04) !important;
}

.single-product .ast-sticky-add-to-cart .ast-sticky-add-to-cart-action-wrap .button {
    background: linear-gradient(135deg, #1B5E3B, #143D2B) !important;
    color: #fff !important;
    border-radius: 10px !important;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    padding: 10px 28px !important;
    transition: all 0.3s ease;
}

.single-product .ast-sticky-add-to-cart .ast-sticky-add-to-cart-action-wrap .button:hover {
    background: linear-gradient(135deg, #C4A265, #A88B4A) !important;
}

/* ==========================================
   REVIEWS
   ========================================== */
.single-product #reviews {
    font-family: 'Cairo', sans-serif;
}

.single-product #reviews .comment-form-rating label {
    font-weight: 600;
    color: #1B5E3B;
}

.single-product #reviews #commentform .form-submit input[type="submit"] {
    background: linear-gradient(135deg, #1B5E3B, #143D2B);
    color: #fff;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    padding: 12px 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.single-product #reviews #commentform .form-submit input[type="submit"]:hover {
    background: linear-gradient(135deg, #C4A265, #A88B4A);
    transform: translateY(-2px);
}

/* ==========================================
   BRANDED PRODUCT SECTIONS (below tabs)
   ========================================== */
.rc-product-extras {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    margin-top: 50px;
}

/* — Features Grid — */
.rc-product-features {
    background: #f8f9fb;
    border-radius: 18px;
    padding: 40px 35px;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.rc-product-features__title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1B5E3B;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rc-product-features__title i {
    color: #C4A265;
    font-size: 1.1rem;
}

.rc-product-features__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.rc-product-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff;
    padding: 18px 20px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.rc-product-feature:hover {
    border-color: rgba(196, 162, 101, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.rc-product-feature__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(196, 162, 101, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: #C4A265;
    flex-shrink: 0;
}

.rc-product-feature__text h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1B5E3B;
    margin-bottom: 3px;
}

.rc-product-feature__text p {
    font-size: 0.78rem;
    color: #888;
    line-height: 1.6;
    margin: 0;
}

/* — Shipping & Returns — */
.rc-product-shipping {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 30px;
}

.rc-product-shipping__item {
    background: #fff;
    border-radius: 14px;
    padding: 25px 20px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.rc-product-shipping__item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.rc-product-shipping__icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(196, 162, 101, 0.1);
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #C4A265;
}

.rc-product-shipping__item h4 {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1B5E3B;
    margin-bottom: 6px;
}

.rc-product-shipping__item p {
    font-size: 0.78rem;
    color: #888;
    line-height: 1.6;
    margin: 0;
}

/* — Brand Guarantee Banner — */
.rc-product-guarantee {
    background: linear-gradient(135deg, #1B5E3B 0%, #143D2B 100%);
    border-radius: 18px;
    padding: 35px 40px;
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
}

.rc-product-guarantee__icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: rgba(196, 162, 101, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #C4A265;
    flex-shrink: 0;
}

.rc-product-guarantee__content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.rc-product-guarantee__content p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin: 0;
}

/* ==========================================
   CUSTOM RELATED PRODUCTS
   ========================================== */
.rc-related-products {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    margin-top: 50px;
    padding-top: 50px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.rc-related-products__header {
    text-align: center;
    margin-bottom: 35px;
}

.rc-related-products__eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #C4A265;
    background: rgba(196, 162, 101, 0.08);
    padding: 5px 18px;
    border-radius: 50px;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}

.rc-related-products__eyebrow i {
    margin-left: 5px;
}

.rc-related-products__title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1B5E3B;
    margin: 8px 0 6px;
}

.rc-related-products__desc {
    font-size: 0.88rem;
    color: #999;
    margin: 0;
}

/* — Carousel wrapper — */
.rc-related-carousel {
    position: relative;
    padding: 0 50px;
}

.rc-related-products__track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 8px 0 15px;
}

.rc-related-products__track::-webkit-scrollbar {
    display: none;
}

/* — Navigation Arrows — */
.rc-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #1B5E3B;
    font-size: 0.9rem;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.rc-carousel-arrow:hover {
    background: #C4A265;
    color: #fff;
    border-color: #C4A265;
    box-shadow: 0 6px 20px rgba(196, 162, 101, 0.3);
}

.rc-carousel-arrow--right {
    right: 0;
}

.rc-carousel-arrow--left {
    left: 0;
}

/* — Product Card — */
.rc-related-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
    min-width: 240px;
    max-width: 280px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.rc-related-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.08);
    border-color: rgba(196, 162, 101, 0.15);
}

/* Card Image */
.rc-related-card__image-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 1;
    background: #f8f9fb;
}

.rc-related-card__image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.rc-related-card:hover .rc-related-card__image-link img {
    transform: scale(1.06);
}

.rc-related-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #C4A265, #A88B4A);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(196, 162, 101, 0.3);
}

/* Card Body */
.rc-related-card__body {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.rc-related-card__category {
    font-size: 0.72rem;
    color: #bbb;
    margin-bottom: 6px;
}

.rc-related-card__category a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.2s;
}

.rc-related-card__category a:hover {
    color: #C4A265;
}

.rc-related-card__title {
    font-size: 0.92rem;
    font-weight: 600;
    color: #1B5E3B;
    text-decoration: none;
    line-height: 1.5;
    margin-bottom: 8px;
    display: block;
    transition: color 0.2s;
}

.rc-related-card__title:hover {
    color: #C4A265;
}

.rc-related-card__price {
    font-size: 1rem;
    font-weight: 700;
    color: #1B5E3B;
    margin-bottom: 14px;
    direction: ltr;
    text-align: right;
}

.rc-related-card__price del {
    font-size: 0.8rem;
    color: #ccc;
    font-weight: 400;
    margin-right: 6px;
}

.rc-related-card__price ins {
    text-decoration: none;
    color: #C4A265;
}

.rc-related-card__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, #1B5E3B, #143D2B) !important;
    color: #fff !important;
    font-family: 'Cairo', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 10px 14px !important;
    border-radius: 10px !important;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-top: auto;
}

.rc-related-card__btn:hover {
    background: linear-gradient(135deg, #C4A265, #A88B4A) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(196, 162, 101, 0.3);
}

.rc-related-card__btn.added::after {
    content: ' ✓';
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .single-product .product_title.entry-title {
        font-size: 1.5rem;
    }

    .single-product .price {
        font-size: 1.4rem !important;
    }

    .rc-product-trust-badges {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .single-product .woocommerce-tabs ul.tabs li a {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .rc-product-features__grid {
        grid-template-columns: 1fr;
    }

    .rc-product-shipping {
        grid-template-columns: 1fr;
    }

    .rc-product-guarantee {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }

    .rc-related-products__title {
        font-size: 1.3rem;
    }

    .rc-related-carousel {
        padding: 0 40px;
    }

    .rc-carousel-arrow {
        width: 36px;
        height: 36px;
        font-size: 0.75rem;
    }

    .rc-related-card {
        min-width: 200px;
    }
}


/* =====================================================
   PRODUCT GRID — UNIFORM CARD HEIGHT v3
   Strategy: force ul.products to CSS Grid → all cards
   in same row auto-equalize height → flex column on
   each card pushes button to bottom via margin-top:auto
   ===================================================== */

/* ---- Container: CSS Grid for equal-height rows ---- */
.woocommerce ul.products,
ul.products {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    align-items: stretch !important;
    gap: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* Responsive columns */
@media (max-width: 1200px) {
    .woocommerce ul.products,
    ul.products { grid-template-columns: repeat(4, 1fr) !important; }
}
@media (max-width: 900px) {
    .woocommerce ul.products,
    ul.products { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 600px) {
    .woocommerce ul.products,
    ul.products { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ---- Each card: flex column, full height ---- */
.woocommerce ul.products li.product,
ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;        /* override Astra float widths */
    margin: 0 !important;
    float: none !important;        /* kill Astra floats */
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.06);
    transition: box-shadow .25s;
}
.woocommerce ul.products li.product:hover,
ul.products li.product:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,.10);
}

/* ---- Image: fixed uniform height ---- */
.woocommerce ul.products li.product .woocommerce-LoopProduct-link,
ul.products li.product a.woocommerce-LoopProduct-link {
    display: block !important;
    flex-shrink: 0 !important;
}
.woocommerce ul.products li.product .woocommerce-LoopProduct-link img,
ul.products li.product img {
    height: 190px !important;
    width: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    background: #fafafa !important;
}

/* ---- Title link: grows → pushes price+button down ---- */
.woocommerce ul.products li.product a.ast-loop-product__link,
ul.products li.product a.ast-loop-product__link {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 10px 12px 4px !important;
    text-decoration: none !important;
}

/* ---- Title: max 3 lines ---- */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
ul.products li.product h2.woocommerce-loop-product__title {
    flex: 1 !important;
    font-size: 0.84rem !important;
    line-height: 1.5 !important;
    color: #1a1a2e !important;
    margin: 0 !important;
    /* 3-line clamp */
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* ---- Price ---- */
.woocommerce ul.products li.product .price,
ul.products li.product .price {
    display: block !important;
    padding: 6px 12px 2px !important;
    font-size: 0.93rem !important;
    font-weight: 700 !important;
    flex-shrink: 0 !important;
}

/* ---- Add to Cart button: always at bottom ---- */
.woocommerce ul.products li.product .rc-card-add-to-cart,
.woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product .add_to_cart_button,
ul.products li.product .rc-card-add-to-cart,
ul.products li.product a.button,
ul.products li.product .add_to_cart_button {
    margin-top: auto !important;
    width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
    border-radius: 0 0 10px 10px !important;
    text-align: center !important;
}

/* ---- Home page: 6 columns (matches original layout) ---- */
.home ul.products {
    grid-template-columns: repeat(6, 1fr) !important;
}
@media (max-width: 1200px) {
    .home ul.products { grid-template-columns: repeat(4, 1fr) !important; }
}
@media (max-width: 900px) {
    .home ul.products { grid-template-columns: repeat(3, 1fr) !important; }
}

/* ---- Wishlist button (.woosw-btn) also pinned to bottom ---- */
ul.products li.product .woosw-btn,
.woocommerce ul.products li.product .woosw-btn {
    margin-top: auto !important;
    width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
    border-radius: 0 0 10px 10px !important;
    text-align: center !important;
}
