/**
 * Product Categories Shortcode Styles
 */

.vina-product-categories {
    background: var(--color-secondary);
    padding: 30px 30px 40px 30px;
    border-radius: 8px;
}

/* Header */
.product-categories-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 36px;
    padding: 0 10px;
}

.product-categories-title {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    line-height: 38px;
    color: #FFFFFF;
    padding-right: 20px;
}

/* Navigation Buttons */
.product-categories-nav {
    display: flex;
    gap: 0;
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 3px 8px 0 rgba(0, 0, 0, 0.10);
    margin-bottom: 6px;
}

.cat-nav-btn {
    padding: 8px 12px;
    border-radius: 0;
    background: #FFFFFF;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #253D4E;
    opacity: 1;
    z-index: 10;
    position: relative;
    min-width: 32px;
    min-height: 30px;
}

.cat-nav-btn * {
    pointer-events: none;
}

.cat-nav-btn:first-child {
    border-radius: 8px 0 0 8px;
}

.cat-nav-btn:last-child {
    border-radius: 0 8px 8px 0;
}

.cat-nav-btn:first-child::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 24px;
    background: #ECECEC;
}

.cat-nav-btn:hover {
    background: #F8F8F8;
}

.cat-nav-btn.slick-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}


.cat-nav-btn svg path {
    stroke-width: 1;
}

.cat-nav-btn img {
    width: 8px;
    height: 14px;
    display: block;
    object-fit: contain;
    opacity: 1;
    visibility: visible;
    max-width: 8px;
    max-height: 14px;
    /* Đảm bảo icon có màu đen/xám để hiển thị trên nền trắng */
    filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

.product-categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

/* Category Item Wrapper */
.category-item {
    padding: 10px;
}

/* Category Card */
.category-card {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 10px 22px 22px 22px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.category-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.category-image img {
    max-width: 100px;
    height: 100px;
    object-fit: contain;
}

.category-name {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    color: #253D4E;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 1024px) {
    .vina-product-categories {
        padding: 20px 10px;
        border-radius: 0px;
    }
}

@media (max-width: 768px) {
    .product-categories-header {
        margin-bottom: 16px;
    }
    .product-categories-nav {
        order: 2;
    }
    
    .cat-nav-btn {
        padding: 10px 14px;
    }
    
    .cat-nav-btn svg {
        width: 10px;
        height: 16px;
    }
    
    .cat-nav-btn img {
        width: 10px;
        height: 16px;
        display: block;
        opacity: 1;
        visibility: visible;
    }
    
    .product-categories-title {
        font-size: 20px;
    }
    
    .category-item {
        padding: 10px;
        border-bottom: 0;
    }
    
    .category-card {
        padding: 20px 15px;
    }
    
    .category-image {
        min-height: 80px;
    }
    
    .category-image img {
        max-height: 100px;
    }
    
    .category-name {
        font-size: 14px;
    }
    
    /* Mobile: slick slider will handle the layout */
    .product-categories-grid {
        /* Slick will override these styles */
    }
}