/*
Theme Name: Reshop Child
Theme URI: https://reshop.modeltheme.com/
Template: reshop
Author: ModelTheme
Author URI: http://modeltheme.com/
Description: ReCommerce & Second Hand Theme
Version: 1.4
Text Domain: reshop
Tags: custom-header, custom-menu, featured-images, post-formats, sticky-post
*/
/* Theme customization starts here
------------------------------------------------------- */
/* Variation Price Wrapper - Flexbox for proper spacing */
.woocommerce-variation-price {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap;
    gap: 0 !important;
}
/* Price container */
.woocommerce-variation-price .price {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
}
/* Sale Price - Large and Bold */
.woocommerce-variation-price .price ins {
    text-decoration: none;
    font-weight: 700;
    font-size: 28px;
    color: #000;
    line-height: 1;
    margin: 0 !important;
}
.woocommerce-variation-price .price ins .woocommerce-Price-amount {
    font-weight: 700;
    font-size: 28px;
}
/* Regular Price - Smaller with strikethrough */
.woocommerce-variation-price .price del {
    font-size: 16px;
    color: #999;
    font-weight: 400;
    text-decoration: line-through;
    margin: 0 !important;
}
.woocommerce-variation-price .price del .woocommerce-Price-amount {
    font-size: 16px;
    color: #999;
}
/* Discount Percentage Wrapper - Creates the space */
.woocommerce-variation-price .discount-percentage-wrapper {
    display: inline-block;
    margin-left: 12px; /* THIS CREATES THE GAP */
}
/* Discount Percentage Badge - Green badge styling */
.woocommerce-variation-price .discount-percentage {
    display: inline-flex;
    align-items: center;
    background-color: #22c55e;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .woocommerce-variation-price .discount-percentage-wrapper {
        margin-left: 10px;
    }
    
    .woocommerce-variation-price .price ins,
    .woocommerce-variation-price .price ins .woocommerce-Price-amount {
        font-size: 24px;
    }
    
    .woocommerce-variation-price .price del,
    .woocommerce-variation-price .price del .woocommerce-Price-amount {
        font-size: 14px;
    }
    
    .woocommerce-variation-price .discount-percentage {
        font-size: 12px;
        padding: 3px 8px;
    }
}
/* === Product Loop Image Fix - added 2026-05-02 ============= */
/* Fixes uneven card widths and squished images on the product
   grid (shop, category, search, related). Root cause: parent
   theme makes <li.product> a flex container on mobile; flex
   auto-basis produces inconsistent intrinsic widths between
   adjacent cards. We constrain the wrapper directly without
   touching <li> display, preserving desktop column layout.
   To revert: delete this block (or restore .bak.2026-05-02-v2). */
ul.products li.product .products-wrapper {
    width: 100% !important;
    min-width: 0 !important;
    flex-basis: 100% !important;
}
ul.products li.product .thumbnail-and-details,
ul.products li.product .woocommerce-LoopProduct-link {
    width: 100% !important;
    display: block;
}
ul.products li.product .woocommerce-LoopProduct-link img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}
/* === End Product Loop Image Fix =========================== */
