/*
Theme Name: Woostify Child
Theme URI: https://replique.shop/
Description: Woostify 的子主题
Author: 倾角度
Author URI: https://replique.shop/
Template: woostify
Version: 1.0.0
Text Domain:  woostify-child
*/
.woostify-product-card__title {
    font-size: 16px;
}
@import url("../Woostify/style.css");

/* 在这里写你的自定义 CSS */

/* 1. 删除销售标签 */
.onsale,
.woocommerce span.onsale,
.botiga-sale-badge {
    display: none !important;
}

/* 2. 统一产品图片尺寸 */
.woocommerce ul.products li.product img,
.woocommerce ul.products li.product .attachment-woocommerce_thumbnail,
.botiga-products .product-image img {
    width: 100% !important;
    height: 320px !important;
    object-fit: cover !important;
    object-position: center;
    border-radius: 8px;
}

.woocommerce ul.products li.product .product-image,
.botiga-products .product-image {
    height: 320px !important;
    overflow: hidden;
}


/* WhatsApp 按钮样式 */
.whatsapp-btn {
    display: inline-flex !important;
    align-items: center;
    padding: 10px 16px;
    background-color: #25D366;
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-size: 15px;
    box-shadow: 0 3px 10px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.5);
}

.whatsapp-btn img {
    filter: brightness(1.1);
}

/* WhatsApp 按钮样式 */
.whatsapp-btn-wrapper {
    width: 100%;
}

.whatsapp-btn {
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    background: #20ba5c !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3) !important;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .whatsapp-btn {
        padding: 14px 20px;
        font-size: 17px;
    }
}

/* 分类导航样式 */
.custom-category-nav {
    margin: 20px 0 30px 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.cat-nav-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.cat-tab {
    padding: 10px 18px;
    background: #f8f8f8;
    border-radius: 30px;
    text-decoration: none;
    color: #333;
    font-size: 15px;
    transition: all 0.3s;
    white-space: nowrap;
}

.cat-tab:hover,
.cat-tab.active {
    background: #000;
    color: #fff;
}


.woostify-custom-products ul.products {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0 -10px;
    list-style: none;
    clear: both;
}
.woostify-custom-products ul.products::before,
.woostify-custom-products ul.products::after {
    display: none !important;
    content: none !important;
}
.woostify-custom-products ul.products li.product {
    position: relative;
    padding: 0 10px;
    margin: 0 0 30px;
    box-sizing: border-box;
    float: none !important;
}
.woostify-custom-products ul.products.columns-1 li.product { width: 100% !important; }
.woostify-custom-products ul.products.columns-2 li.product { width: 50% !important; }
.woostify-custom-products ul.products.columns-3 li.product { width: 33.333% !important; }
.woostify-custom-products ul.products.columns-4 li.product { width: 25% !important; }
.woostify-custom-products ul.products.columns-5 li.product { width: 20% !important; }
.woostify-custom-products ul.products.columns-6 li.product { width: 16.666% !important; }
.woostify-custom-products li.product img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 0 10px;
}
.woostify-custom-products li.product .woocommerce-loop-product__title {
    font-size: 15px;
    font-weight: 500;
    padding: 8px 0;
    margin: 0;
    line-height: 1.4;
}
.woostify-custom-products li.product .price {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    display: block;
    margin-bottom: 10px;
}
.woostify-custom-products li.product .price del {
    color: #999;
    font-size: 13px;
    margin-right: 6px;
}
.woostify-custom-products li.product .price ins {
    text-decoration: none;
    color: #e44d4d;
}
.woostify-custom-products li.product .button {
    display: inline-block;
    text-align: center;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    background: #222;
    color: #fff;
    border: none;
    border-radius: 4px;
    text-decoration: none;
}
.woostify-custom-products li.product .button:hover {
    background: #e44d4d;
    color: #fff;
}
@media (max-width: 768px) {
    .woostify-custom-products ul.products li.product { width: 50% !important; }
}
@media (max-width: 480px) {
    .woostify-custom-products ul.products li.product { width: 100% !important; }
}


.pbc-grid {
    display: grid;
    gap: 24px;
    margin: 20px 0;
}
.pbc-cols-1 { grid-template-columns: 1fr; }
.pbc-cols-2 { grid-template-columns: repeat(2, 1fr); }
.pbc-cols-3 { grid-template-columns: repeat(3, 1fr); }
.pbc-cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 768px) {
    .pbc-grid { grid-template-columns: 1fr !important; }
}
.pbc-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    padding: 16px;
}
.pbc-thumb img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}
.pbc-date {
    color: #888;
    font-size: 13px;
    margin: 8px 0 4px;
}
.pbc-title {
    margin: 0 0 8px;
    font-size: 18px;
}
.pbc-title a {
    text-decoration: none;
    color: #222;
}
.pbc-excerpt {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}