:root {
    --primary-color: #3b82f6;
    /* Màu xanh chính */
    --secondary-color: #1f2937;
    /* Màu tiêu đề */
    --text-color: #4b5563;
    /* Màu chữ chính */
    --muted-text-color: #6b7280;
    /* Màu chữ nhạt */
    --bg-light: #f9fafb;
    /* Nền sáng */
    --bg-dark: #ffffff;
    /* Nền trắng */
    --border-color: #ddd;
    /* Màu đường viền */
    --transition-duration: 0.3s;
    /* Thời gian chuyển động */
    --box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /* Đổ bóng nhẹ */
    --hover-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    /* Đổ bóng khi hover */
    --title-color: #4CAF50;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--bg-light);
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

/* Container chính */
.cpd-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Tabs */
.cpd-tabs {
    margin-top: 20px;
}

.cpd-tab-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 20px 0;
    gap: 15px;
}

.cpd-tab-menu li {
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 8px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    transition: background var(--transition-duration), color var(--transition-duration);
}

.cpd-tab-menu li.active {
    background: var(--primary-color);
    color: var(--bg-dark);
    border-color: var(--primary-color);
}

.cpd-tab-menu li:hover {
    background: #e5e7eb;
}

/* Nội dung tab */
.cpd-tab-content {
    display: flex;
    flex-direction: column;
}

.signature-icon-img img {
    width: 25px;
    /* Kích thước chiều rộng tương đương với font-size của icon */
    height: 25px;
    /* Kích thước chiều cao tương đương với font-size của icon */
    vertical-align: middle;
    /* Căn chỉnh ảnh theo cùng một đường cơ sở với icon */
}

.title-popup {
    text-transform: uppercase;
    color: #4CAF50;
}

.price-popup {
    color: black;
    font-weight: bold;
}

/* .image-popup {} */

/* Hiển thị danh mục con thành 2 cột trên màn hình lớn */
.cpd-category-content {
    display: none;
    /* Ẩn toàn bộ nội dung */
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.cpd-category-content.active {
    display: grid;
    /* Hiển thị lại dưới dạng lưới */
}

.cpd-category-box.cpd-category-box-style-1 {
    position: relative;
    background-color: transparent;
    color: #E0E0E0;
    padding: 20px;
    border: 2px solid #dca0dddb;
    overflow: visible;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.cpd-category-title.cpd-category-title-style-1 {
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
    border-bottom: solid 1px #000000;
    padding: 10px 15px;
    color: #000000;
    text-align: center;
}

.cpd-category-box.cpd-category-box-style-2 {
    position: relative;
    background-color: #E0E0E0;
    /* Giữ nguyên màu ghi */
    color: #E0E0E0;
    /* Hoặc đổi thành #000 tuỳ ý */
    overflow: visible;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    padding: 20px;
    clip-path: polygon(10% 0%, 90% 0%, 100% 10%, 100% 90%, 90% 100%, 10% 100%, 0% 90%, 0% 10%);
}

.cpd-category-title.cpd-category-title-style-2 {
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    border-bottom: 2px solid #ffffff;
    color: #000000;
    text-align: center;
    clip-path: polygon(10% 0%, 90% 0%, 100% 100%, 0% 100%);
    padding-left: 20px;
    margin-bottom: 20px;
    padding-bottom: 5px;
}

.cpd-category-box.cpd-category-box-style-3 {
    position: relative;
    background-color: transparent;
    overflow: visible;
}

/* Polygon + viền + bóng ở pseudo-element */
.cpd-category-box.cpd-category-box-style-3::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    clip-path: polygon(40px 0, calc(100% - 40px) 0, 100% 40px,
            100% 100%, calc(100% - 40px) 100%, 40px 100%,
            0 100%, 0 40px);
    background-color: #E0E0E0;
    border: 2px solid #dca0dddb;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.cpd-category-title.cpd-category-title-style-3 {
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
    background-color: #dca0dddb;
    padding: 10px 15px;
    color: #000000;
    text-align: center;
    clip-path: polygon(40px 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, calc(100% - 40px) 100%, 40px 100%, 0 100%, 0 40px);
}

.cpd-product-list.cpd-product-list-style-3 {
    padding: 0px 40px 0px 40px;
}

.cpd-category-box.cpd-category-box-style-4 {
    height: auto;
    position: relative;
    color: #000000;
    padding: 20px;
    border: 2px solid #dca0dddb;
    border-radius: 8px;

    background-color: #E0E0E0;
    overflow: visible;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.cpd-category-title.cpd-category-title-style-4 {
    font-size: 1.8rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-bottom: 5px;
    color: #000000;
    text-align: left;
    border-bottom: 2px solid #9c27b0;
    margin-left: -20px;
    padding-left: 20px;
}

/* Danh sách sản phẩm */
.cpd-product-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cpd-product-item {
    position: relative;
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 1rem;
}

.cpd-product-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: transparent;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.cpd-product-item:hover::after {
    width: 100%;
    /* Mở rộng từ 0 đến 100% */
    background: #000000;
    /* Đổi màu từ trắng sang xanh */
}

/* .cpd-product-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
} */

.cpd-product-description {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.cpd-product-title {
    position: relative;
    display: inline-block;
    font-size: 1rem;
    font-weight: bold;
    color: #000000;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
}

.cpd-product-title:hover {
    color: #474747;
}

/* Giá sản phẩm */
.cpd-product-price {
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #000000;
}

/* Popup */
.cpd-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.cpd-popup-content {
    background: var(--bg-dark);
    padding: 20px;
    max-width: 500px;
    width: 100%;
    box-shadow: var(--hover-shadow);
    border-radius: 10px;
    animation: fadeIn var(--transition-duration) ease-in-out;
    position: relative;
}

.cpd-close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f44336;
    color: var(--bg-dark);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    line-height: 30px;
    box-shadow: var(--hover-shadow);
    transition: background var(--transition-duration);
}

.cpd-close-popup:hover {
    background: #e53935;
}

@keyframes sparkle {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* Keyframes cho hiệu ứng popup */
@keyframes fadeIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .cpd-category-box {
        padding: 15px;
    }

    .cpd-category-box.cpd-category-box-style-3 {
        padding: 0;
    }

    .cpd-product-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 10px;
    }

    .cpd-product-title,
    .cpd-product-price {
        font-size: 1rem;
    }

    .cpd-category-content {
        grid-template-columns: 1fr;
    }

    .cpd-popup-content {
        width: 90%;
    }
}