/**
 * ============================================
 * CUSTOM CATEGORY PRODUCTS STYLES
 * ============================================
 * Styles cho shortcode: [custom_category_products]
 * Hiển thị sản phẩm từ category "custom"
 */

/* ============================================
   SECTION 1: GRID LAYOUT
   ============================================ */
.custom-category-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

/* ============================================
   SECTION 2: PRODUCT CARD
   ============================================ */
.custom-category-products-grid .product {
    margin-bottom: 0;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.custom-category-products-grid .product:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ============================================
   SECTION 3: PRODUCT IMAGE
   ============================================ */
.custom-category-products-grid .product-image {
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 4px;
}

.custom-category-products-grid .product-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.custom-category-products-grid .product-image:hover img {
    transform: scale(1.05);
}

.custom-category-products-grid .product-image a {
    display: block;
    text-decoration: none;
}

/* ============================================
   SECTION 4: PRODUCT TITLE
   ============================================ */
.custom-category-products-grid .product h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    line-height: 1.4;
    min-height: 50px;
    display: flex;
    align-items: center;
}

.custom-category-products-grid .product h3 a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.custom-category-products-grid .product h3 a:hover {
    color: #446084;
}

/* ============================================
   SECTION 5: PRODUCT PRICE
   ============================================ */
.custom-category-products-grid .product-price {
    margin: 10px 0;
    font-size: 16px;
    min-height: 30px;
    display: flex;
    align-items: center;
}

.custom-category-products-grid .product-price .regular-price {
    margin-right: 10px;
}

.custom-category-products-grid .product-price .sale-price {
    font-size: 18px;
}

/* ============================================
   SECTION 6: PRODUCT DESCRIPTION
   ============================================ */
.custom-category-products-grid .product-description {
    margin: 10px 0;
    color: #666;
    line-height: 1.6;
    flex-grow: 1;
}

/* ============================================
   SECTION 7: BUTTON
   ============================================ */
.custom-category-products-grid .product .button {
    display: block;
    padding: 10px 20px;
    background-color: #446084;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    margin-top: auto;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.custom-category-products-grid .product .button:hover {
    background-color: #35506b;
}

/* ============================================
   SECTION 8: RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .custom-category-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .custom-category-products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .custom-category-products-grid .product {
        margin-bottom: 0;
        padding: 12px;
    }
    
    .custom-category-products-grid .product h3 {
        font-size: 16px;
    }
    
    .custom-category-products-grid .product-price {
        font-size: 14px;
    }
}

