/*
Theme Name: GeneratePress Child
Template: generatepress
*/

/* --- LAYOUT SEO & UX OPTIMIZATIONS --- */
body.woocommerce-page .grid-container {
    max-width: 1400px; 
}
/* Ẩn các nút rác của WooCommerce */
.woocommerce-result-count, .woocommerce-ordering {
    display: none !important;
}

/* =========================================
   1. IVIVU STYLE PRODUCT CARD (HORIZONTAL) 
   ========================================= */
.woocommerce ul.products {
    display: block !important; /* Force block for 1 column */
}
.woocommerce ul.products li.product {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    overflow: hidden;
    padding: 0 !important;
    margin-bottom: 25px !important;
    border: 1px solid #e0e0e0;
    width: 100% !important;
    float: none !important;
}
.woocommerce ul.products li.product:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: #f78713;
    transform: translateY(-2px);
}
.iv-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
}

/* CỘT 1: HÌNH ẢNH (35%) */
.iv-img-col {
    width: 32%;
    position: relative;
    overflow: hidden;
}
.iv-img-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 220px;
    transition: transform 0.6s ease;
}
.woocommerce ul.products li.product:hover .iv-img-col img {
    transform: scale(1.05);
}
.iv-badge-location {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}
.iv-badge-sale {
    position: absolute;
    top: 0;
    left: 0;
    background: #e53935;
    color: #fff;
    padding: 4px 12px;
    border-radius: 0 0 10px 0;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

/* CỘT 2: THÔNG TIN (43%) */
.iv-info-col {
    width: 43%;
    padding: 20px;
    display: flex;
    flex-direction: column;
}
.iv-rating {
    margin-bottom: 8px;
    font-size: 13px;
}
.iv-rating .score {
    background: #00aa6c;
    color: #fff;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 5px;
}
.iv-rating .text {
    color: #00aa6c;
    font-weight: 600;
}
.iv-rating .count {
    color: #888;
}
.iv-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #222 !important;
    margin: 0 0 12px !important;
    line-height: 1.4 !important;
}
.iv-title a { color: inherit; text-decoration: none; }
.iv-title a:hover { color: #f78713; }

.iv-meta {
    font-size: 13px;
    color: #555;
    margin-bottom: 15px;
}
.iv-meta span {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 5px;
}
.iv-meta i {
    color: #888;
    margin-right: 5px;
}
.iv-tags {
    margin-top: auto;
}
.iv-tag {
    display: inline-block;
    border: 1px solid #ddd;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    color: #555;
    margin-right: 8px;
    background: #f9f9f9;
}

/* CỘT 3: GIÁ & NÚT (25%) */
.iv-price-col {
    width: 25%;
    padding: 20px;
    border-left: 1px dashed #eee;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    background: #fdfdfd;
}
.iv-price-wrap {
    text-align: right;
    margin-bottom: 15px;
}
.price-label {
    font-size: 12px;
    color: #888;
}
.iv-price-old {
    font-size: 13px;
    color: #999;
}
.iv-price-new {
    font-size: 24px;
    color: #f7931e;
    font-weight: 800;
}
.iv-date {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}
.iv-btn {
    background: #26bed6; /* Màu iVivu cyan/blue */
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    text-decoration: none;
    transition: 0.3s;
    width: 100%;
    text-align: center;
    margin-top: 15px;
}
.iv-btn:hover {
    background: #1ca5bb;
    color: #fff;
}

/* Responsive cho Mobile */
@media (max-width: 768px) {
    .iv-card { flex-direction: column; }
    .iv-img-col, .iv-info-col, .iv-price-col { width: 100%; }
    .iv-price-col { border-left: none; border-top: 1px dashed #eee; align-items: center; text-align: center; }
    .iv-price-wrap { text-align: center; }
}

/* =========================================
   2. BỘ LỌC WOOF (IVIVU PILL STYLE)
   ========================================= */
.woof-custom-widget {
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06) !important;
    padding: 25px !important;
    margin-bottom: 30px !important;
    border: 1px solid #f2f2f2 !important;
}
.woof-custom-widget .widget-title {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #19267b !important;
    border-bottom: 2px solid #f78713;
    padding-bottom: 12px;
    margin-bottom: 20px !important;
    text-transform: uppercase;
    display: inline-block;
}
.woof_list_radio, .woof_list_checkbox {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}
.woof_list_radio li, .woof_list_checkbox li {
    margin: 0 !important;
    padding: 0 !important;
    flex: 1 1 calc(50% - 10px); /* 2 cột */
}
.woof_list_radio li input, 
.woof_list_checkbox li input {
    display: none !important; /* Ẩn checkbox thật */
}
.woof_list_radio li label,
.woof_list_checkbox li label {
    display: block !important;
    padding: 10px 15px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    text-align: center !important;
    cursor: pointer !important;
    font-size: 13px !important;
    color: #666 !important;
    background: #f9f9f9 !important;
    transition: all 0.2s ease !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
}
.woof_list_radio li label:hover,
.woof_list_checkbox li label:hover {
    border-color: #26bed6 !important;
    color: #26bed6 !important;
}
.woof_list_radio li input:checked + label,
.woof_list_checkbox li input:checked + label,
.woof_radio_term:checked + label,
.woof_checkbox_term:checked + label {
    border-color: #26bed6 !important;
    color: #26bed6 !important;
    background: #e1f5f7 !important; /* Màu nền xanh nhạt iVivu */
    font-weight: bold !important;
}
/* Ẩn bộ đếm số lượng (count) nếu có */
.woof_radio_count, .woof_checkbox_count {
    display: none !important;
}
.woof_container_inner h4 {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #444 !important;
    margin-bottom: 12px !important;
    text-transform: none !important;
    padding-bottom: 8px !important;
    border-bottom: 1px dashed #eee;
}
