/*
Theme Name: Blocksy Child
Theme URI: https://creativethemes.com/blocksy/
Template: blocksy
Author: CreativeThemes
Author URI: https://creativethemes.com
Description: Blocksy is a fast, modern WordPress theme with advanced WooCommerce support and full compatibility with the block editor.
Tags: accessibility-ready,blog,block-patterns,e-commerce,wide-blocks,block-styles,grid-layout,one-column,two-columns,three-columns,four-columns,right-sidebar,left-sidebar,translation-ready,custom-colors,custom-logo,custom-menu,featured-images,footer-widgets,full-width-template,theme-options,threaded-comments
Version: 2.1.22.1764996620
Updated: 2025-12-06 04:50:20

*/
/*---------------------------- Product -----------------------------*/
.single.single-product .ct-module-title {
    text-align: center;
}

.products li.product{
    transition: 0.4s;
}

.products li.product:hover {
    transform: translateY(-10px);
    transition: 0.4s;
}

.products .ct-media-container img {
    height: 200px;
    object-fit: contain;
}

.products  .woocommerce-loop-product__title {
    padding: 10px;
    background-color: #e6e6e6;
}

.products .product {
    box-shadow: 0px 4px 10px #ccc;
}
/* Custom archive product layout - chia cột 2 cho columns-2 và columns-3 */
.custom-archive-wrapper {
    display: flex;
    flex-wrap: wrap;
    padding: 50px 0;
}

.custom-archive-wrapper .columns-2 {
    width: calc((100% - 100px) / 2);
    margin: 20px;
}

.top-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    background-color: #234189;
    padding: 0 15px;
    position: relative;
    border-top-right-radius: 20px;
}

.middle-category {
    height: 250px;
    overflow: hidden;
    box-shadow: 2px 2px 15px #ccc;
}

.middle-category img {
    height: 250px;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.top-category span.number {
    font-size: 50px;
    font-weight: 700;
}

.top-category::before {
    content: "";
    position: absolute;
    background-color: #234189;
    height: 20px;
    width: 100px;
    z-index: 1;
    top: -20px;
    left: 0;
    border-top-left-radius: 30px;
}

.top-category::after {
    content: "";
    position: absolute;
    left: 100px;
    top: -20px;
    width: 0;
    height: 0;
    border-top: 20px solid transparent;
    border-right: 20px solid transparent;
    border-left: 20px solid #234189;

}

.top-category span.name {
    text-transform: uppercase;
    font-weight: 600;
}

/* ========== HIỆU ỨNG CHO COLUMNS-2 ========== */

/* Animation khi load trang */
.custom-archive-wrapper .columns-2 {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.custom-archive-wrapper .columns-2:nth-child(1) { animation-delay: 0.1s; }
.custom-archive-wrapper .columns-2:nth-child(2) { animation-delay: 0.2s; }
.custom-archive-wrapper .columns-2:nth-child(3) { animation-delay: 0.3s; }
.custom-archive-wrapper .columns-2:nth-child(4) { animation-delay: 0.4s; }
.custom-archive-wrapper .columns-2:nth-child(5) { animation-delay: 0.5s; }
.custom-archive-wrapper .columns-2:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effect cho columns-2 */
.custom-archive-wrapper .columns-2 {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.custom-archive-wrapper .columns-2:hover {
    transform: translateY(-10px) scale(1.02);
}

.custom-archive-wrapper .columns-2 a {
    display: block;
    text-decoration: none;
    transition: all 0.3s ease;
}


/* Hover effect cho number */
.top-category span.number {
    transition: all 0.3s ease;
    display: inline-block;
}

.columns-2:hover .top-category span.number {
    transform: scale(1.1) rotate(5deg);
    color: #97c93a;
}


/* Image zoom effect */
.middle-category {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 0 10px 10px;
}

.middle-category::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.columns-2:hover .middle-category::before {
    opacity: 1;
}

.middle-category img {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1);
}

.columns-2:hover .middle-category img {
    transform: scale(1.15);
    filter: brightness(1.1);
}

/* Shadow effect khi hover */
.columns-2:hover .middle-category {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Pulse animation cho number khi hover */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

.columns-2:hover .top-category span.number {
    animation: pulse 1.5s ease-in-out infinite;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .custom-archive-wrapper .columns-2 {
        width: calc(100% - 40px);
        margin: 15px 20px;
    }
    
    .columns-2:hover {
        transform: translateY(-5px) scale(1.01);
    }
}