@media (max-width: 767px) {
    .sidebar-media {
        display: none !important;
    }
    .top-employees-buttons-column{
        display: none !important;
    }
}

.product-category-section h4 {
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #edf2f7;
    position: relative;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.product-category-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
}

/* รายการสินค้า */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
}

/* แต่ละสินค้า */
.product-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.product-item:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-8px);
}

/* รูปสินค้า */
.product-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.product-item:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e74c3c;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.product-details {
    padding: 20px;
    position: relative;
    background: white;
}

.product-title {
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 4.2em;
    /* 3 lines * 1.4 line-height */
    margin-bottom: 10px;
}

.product-title a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s;
}

.product-title a:hover {
    color: #4a5568;
    text-decoration: underline;
}

.product-sales {
    display: flex;
    align-items: center;
    color: #7f8c8d;
    font-size: 0.9em;
    margin-top: 10px;
}

.sales-count {
    margin-left: 5px;
    font-weight: bold;
    color: #e74c3c;
}

/* Responsive */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .top-selling-container {
        padding: 20px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 20px;
    }

    .product-image {
        height: 160px;
    }

    .product-details {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .product-category-section {
        padding: 20px;
    }

    .product-category-section h4 {
        font-size: 1.5em;
    }
}





/* ====================== Employees Contact ====================== */
.top-employees-buttons-column {
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 20px 0px;
}

.contact-employee-button-column {
    position: relative;
    display: grid;
    grid-template-columns: 80% 20%;
    box-shadow 0.2s ease;
    flex-direction: row;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    align-items: center;
    text-align: center;
}

.contact-employee-button-column p {
    margin-right: 10px !important;
}

.user_img-column {
    position: absolute;
    top: 15px;
    left: 10px;
}

.contact_us {
    display: flex;
    flex-direction: column;
    padding: 5px;
}

.contact-icons {
    display: flex;
    gap: 5px;
    margin-top: 5px;
}

.contact-icons i {
    font-size: 18px;
}

.contact-employee-button img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-bottom: 5px;
    object-fit: cover;
}

.contact_us a {
    padding: 2px 0 2px 5px;
    box-shadow: -1px 0px rgba(0, 0, 0, 0.2);
}

/* ====================== Employees Contact ====================== */
/* ====================== Employees Contact2 ====================== */

.top-employees-buttons-row {
    display: flex;
    flex-direction: row;
    gap: 10px;
    padding: 5px;
    max-width: 100%;
    margin: 10px auto;
    overflow: auto;
}

.contact-employee-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    font-size: 13px;
}

.employee-info-section {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #f2f2f2;
}

.employee-info-section img.profile-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
    border: 1px solid #ddd;
}

.employee-info-section p.employee-name {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.contact-buttons-section {
    display: flex;
    justify-content: space-around;
    padding: 5px;
    border-top: 1px solid #eee;
    gap: 5px;
}

.contact-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.contact-button i {
    margin-right: 5px;
    font-size: 14px;
}

.contact-button.line {
    background-color: #00c300;
    font-size: 10px;
    color: #fff;
    height: 25px;
    text-decoration: none;
}

.contact-button.phone {
    background-color: #6a6a6a;
    font-size: 10px;
    color: #fff;
    height: 25px;
    text-decoration: none;
}

.contact-button.line i,
.contact-button.phone i {
    font-size: 10px;
    color: #fff;
}