/* =========================================================
   KRULUXE SHOP / PRODUCT CARD V1
   File: assets/css/shop.css
   ========================================================= */


/* =========================================================
   1. SHOP PAGE WIDTH
   ========================================================= */

.woocommerce-shop .site-main,
.post-type-archive-product .site-main,
.tax-product_cat .site-main,
.tax-product_tag .site-main {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 42px 24px 80px;
    box-sizing: border-box;
}


/* =========================================================
   2. SHOP HEADER
   ========================================================= */

.woocommerce-shop .woocommerce-products-header,
.post-type-archive-product .woocommerce-products-header {
    margin-bottom: 28px;
}

.woocommerce-shop .woocommerce-products-header__title,
.post-type-archive-product .woocommerce-products-header__title {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 400;
    line-height: 1.15;
    color: #181818;
}


/* =========================================================
   3. RESULT COUNT + SORTING
   ========================================================= */

.woocommerce .woocommerce-result-count {
    margin: 0 0 24px;
    font-size: 13px;
    color: #777;
}

.woocommerce .woocommerce-ordering {
    margin: 0 0 24px;
}

.woocommerce .woocommerce-ordering select {
    min-height: 40px;
    padding: 8px 34px 8px 12px;
    border: 1px solid #ddd7ca;
    background: #fff;
    color: #222;
    font-size: 13px;
}


/* =========================================================
   4. PRODUCT GRID
   ========================================================= */

.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px 24px;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none !important;
}


/* =========================================================
   5. PRODUCT CARD
   ========================================================= */

.woocommerce ul.products li.product {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 0 22px !important;

    position: relative;

    display: flex;
    flex-direction: column;

    background: #fff;
    border: 1px solid #ece8df;
    border-radius: 2px;
    overflow: hidden;

    box-sizing: border-box;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-3px);
    border-color: #ddd2bd;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.06);
}


/* =========================================================
   6. PRODUCT IMAGE
   ========================================================= */

.woocommerce ul.products li.product a img {
    width: 100% !important;
    aspect-ratio: 1 / 1;
    height: auto !important;
    object-fit: contain;

    margin: 0 !important;
    padding: 0;

    background: #fbfaf7;
    display: block;
}


/* =========================================================
   7. SALE BADGE
   ========================================================= */

.woocommerce span.onsale {
    top: 12px !important;
    left: 12px !important;
    right: auto !important;

    min-width: 42px;
    min-height: 42px;
    line-height: 42px;

    margin: 0 !important;
    padding: 0 8px !important;

    border-radius: 50%;

    background: #b08a3e;
    color: #fff;

    font-size: 11px;
    font-weight: 600;
}


/* =========================================================
   8. PRODUCT CATEGORY
   ========================================================= */

.woocommerce ul.products li.product .product-category,
.woocommerce ul.products li.product .ast-woo-product-category {
    display: block;
    margin: 16px 18px 5px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8a8a8a;
}


/* =========================================================
   9. PRODUCT TITLE
   ========================================================= */

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    margin: 15px 18px 0 !important;
    padding: 0 !important;

    min-height: 52px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px !important;
    font-weight: 400 !important;
    line-height: 1.45 !important;

    color: #1c1c1c;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title:hover {
    color: #9a762f;
}


/* =========================================================
   10. PRICE
   ========================================================= */

.woocommerce ul.products li.product .price {
    margin: 8px 18px 0 !important;

    font-size: 15px !important;
    line-height: 1.5;

    color: #222 !important;
}

.woocommerce ul.products li.product .price del {
    opacity: 0.5;
    margin-right: 6px;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none;
}


/* =========================================================
   11. ADD TO CART
   ========================================================= */

.woocommerce ul.products li.product .button {
    margin: 18px 18px 0 !important;

    min-height: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 11px 16px !important;

    background: #b08a3e !important;
    border: 1px solid #b08a3e !important;
    border-radius: 1px !important;

    color: #fff !important;

    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.03em;

    text-align: center;
}

.woocommerce ul.products li.product .button:hover {
    background: #99742f !important;
    border-color: #99742f !important;
    color: #fff !important;
}


/* =========================================================
   12. WISHLIST BUTTON - IF PRESENT
   ========================================================= */

/*
 * Stable V2 does not auto-inject this.
 * But if shortcode/manual button exists later,
 * keep it compact and card-safe.
 */

.woocommerce ul.products li.product .kruluxe-wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;

    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;

    padding: 0;

    border: 1px solid #e4ded2;
    border-radius: 50%;

    background: rgba(255,255,255,0.96);

    z-index: 6;
}

.woocommerce ul.products li.product .kruluxe-wishlist-button-text {
    display: none;
}

.woocommerce ul.products li.product .kruluxe-wishlist-heart {
    font-size: 20px;
}


/* =========================================================
   13. LINKS
   ========================================================= */

.woocommerce ul.products li.product a {
    text-decoration: none;
}


/* =========================================================
   14. TABLET
   ========================================================= */

@media (max-width: 980px) {

    .woocommerce-shop .site-main,
    .post-type-archive-product .site-main,
    .tax-product_cat .site-main,
    .tax-product_tag .site-main {
        padding: 32px 20px 70px;
    }

    .woocommerce ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px 18px;
    }
}


/* =========================================================
   15. MOBILE
   ========================================================= */

@media (max-width: 640px) {

    .woocommerce-shop .site-main,
    .post-type-archive-product .site-main,
    .tax-product_cat .site-main,
    .tax-product_tag .site-main {
        padding: 24px 14px 60px;
    }

    .woocommerce ul.products {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        min-height: 0;
        font-size: 18px !important;
    }
}