* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    color: #333;
    background-color: #ffffff;
}

.ph-search-area {
    background-position: center bottom;
    padding: 60px 20px 0px 20px;
    display: flex;
    justify-content: center;
    background-image: url('/plugins/img/products.jpg');
    background-size: cover;
    background-repeat: repeat;
    height: 330px;
}
.ph-search-container {
    max-width: 1500px;
    width: 100%;
    text-align: center;
}
.ph-search-title {
    font-size: 2em;
    color: #333333;
    margin-bottom: 12px;
    font-weight: 600;
}
.ph-search-desc {
    font-size: 1em;
    color: #999999;
    margin-bottom: 35px;
    line-height: 1.6;
}
.ph-search-box-wrapper {
    display: flex;
    justify-content: center;
}
.ph-search-box {
    position: relative;
    width: 100%;
    max-width: 800px;
    display: flex;
    align-items: center;
}
.ph-search-input {
    flex: 1;
    height: 52px;
    padding: 0 20px 0 50px;
    border: 1px solid #e8e8e8;
    border-radius: 8px 0 0 8px;
    font-size: 15px;
    outline: none;
    background-color: #ffffff;
    border-right: none;
}
.ph-search-btn {
    height: 52px;
    padding: 0 30px;
    border: 1px solid #007bff;
    border-radius: 0 8px 8px 0;
    background-color: #007bff;
    color: #ffffff;
    font-size: 1em;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}
.ph-search-btn:hover {
    background-color: #0069d9;
    border-color: #0062cc;
}
.ph-search-input:focus {
    border-color: #007bff;
}
.ph-search-input::placeholder {
    color: #cccccc;
}
.ph-search-icon {
    position: absolute;
    left: 18px;
    top: 45%;
    transform: translateY(-50%);
    font-size: 1.125em;
    color: #999999;
}

.ph-hot-search {
    margin-top: 18px;
}
.ph-hot-search-label {
    font-size: 1em;
    color: #999999;
    margin-right: 12px;
}
.ph-hot-search a {
    font-size: 1em;
    color: #666666;
    text-decoration: none;
    margin-right: 18px;
}
.ph-hot-search a:hover {
    color: #007bff;
    text-decoration: underline;
}

@media screen and (max-width: 768px) {
    .ph-search-area {
        max-height:300px;
        padding: 50px 15px;
    }
    .ph-search-title {
        font-size: 1.8em;
    }
}

.ph-products-area {
    background-color: #f5f5f5;
    padding: 60px 20px;
}

.ph-products-header {
    text-align: center;
    margin-bottom: 40px;
}

.ph-products-header h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.ph-products-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.ph-product-link {
    font-size: 14px;
    color: #e53935;
    text-decoration: none;
    position: relative;
}

.ph-product-link::after {
    content: '>';
    margin-left: 5px;
}

.ph-products-container {
    max-width: 1520px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
}

.ph-categories-sidebar {
    width: 260px;
    flex-shrink: 0;
}

.ph-category-item {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    border-radius: 4px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    background-color: transparent;
}

.ph-category-item:hover {
    background-color: #e8e8e8;
    color: #666;
}

.ph-category-item.active {
    background-color: #fff;
    color: #333;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ph-products-content {
    flex: 1;
    border-radius: 8px;
}

.ph-products-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.ph-products-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}



.ph-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ph-product-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 24px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.ph-product-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-color: #e0e0e0;
}

.ph-product-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    background-color: #f5f5f5;
}

.ph-product-icon img {
    border-radius: 15%;
    object-fit: contain;
}

.ph-product-info {
    min-width: 0;
    overflow: hidden;
}

.ph-category-section {
    margin-bottom: 40px;

    border-bottom: 1px solid #f0f0f0;
}

.ph-category-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.ph-category-item {
    text-decoration: none;
}

.ph-product-name {
    font-size: 1em;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.ph-product-desc {
    display: block;
    width: 100%;
    font-size: 0.9em;
    color: #999;
    line-height: 1.6;
    height: 1.6em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media screen and (max-width: 1250px) {
    .ph-products-container {
        flex-direction: column;
    }
    
    .ph-categories-sidebar {
        width: 100%;
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 12px;
        margin-bottom: 24px;
        padding-bottom: 8px;
    }
    
    .ph-categories-sidebar::-webkit-scrollbar {
        height: 4px;
    }
    
    .ph-categories-sidebar::-webkit-scrollbar-thumb {
        background-color: #ddd;
        border-radius: 2px;
    }
    
    .ph-category-item {
        padding: 10px 20px;
        margin-bottom: 0;
        white-space: nowrap;
    }
    
    .ph-product-info {
        width: 100%;
        overflow: hidden;
    }
    
    .ph-product-desc {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media screen and (max-width: 1200px) {
    .ph-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .ph-products-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .ph-product-card {
        padding: 16px;
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
    }
    
    .ph-product-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .ph-product-info {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }
    
    .ph-product-name {
        margin-bottom: 4px;
    }
    
    .ph-product-desc {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .ph-products-header h2 {
        font-size: 24px;
    }
    
    .ph-products-links {
        flex-direction: column;
        gap: 10px;
    }
}

@media screen and (max-width: 430px) {
    .ph-products-area {
        padding: 40px 10px;
    }
    
    .ph-product-card {
        padding: 12px;
        gap: 10px;
    }
    
    .ph-product-icon {
        width: 36px;
        height: 36px;
    }
    
    .ph-product-info {
        flex: 1;
        min-width: 0;
        width: 100%;
        overflow: hidden;
    }
    
    .ph-product-desc {
        font-size: 0.9em;
        color: #999;
        line-height: 1.6;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}