.product-catalog {
    min-height: 600px;
    padding: 20px 0;
}

.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    margin-bottom: 20px;
}

.logo-area {
    display: flex;
    align-items: center;
}

.kus-logo {
    width: 80px;
    height: 80px;
    margin-right: 20px;
}

.company-info h1 {
    font-size: 20px;
    color: #333;
    margin: 0;
}

.company-info p {
    font-size: 14px;
    color: #666;
    margin: 5px 0 0;
}

.auth-code-area {
    text-align: right;
}

.auth-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-box label {
    font-weight: bold;
    font-size: 14px;
}

.auth-box input {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 200px;
}

.auth-btn {
    padding: 8px 20px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.auth-btn:hover {
    background: #0056b3;
}

.auth-status {
    margin-top: 10px;
    font-size: 12px;
}

.auth-status .success {
    color: green;
}

.auth-status .error {
    color: red;
}

.catalog-body {
    display: flex;
    gap: 20px;
}

.sidebar {
    width: 280px;
    flex-shrink: 0;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-box input {
    flex: 1;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.search-btn {
    padding: 8px 15px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.category-tree {
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 20px;
}

.category-tree h3 {
    margin: 0 0 15px;
    font-size: 16px;
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cat-item {
    margin-bottom: 10px;
}

.cat-item a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.cat-item.active > a {
    color: #007bff;
    font-weight: bold;
}

.sub-cat {
    list-style: none;
    padding: 10px 0 0 20px;
    margin: 0;
}

.sub-cat li {
    margin-bottom: 5px;
}

.sub-cat a {
    color: #666;
    font-size: 13px;
}

.salesman-info {
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
}

.salesman-info h3 {
    margin: 0 0 15px;
    font-size: 16px;
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.main-content {
    flex: 1;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #fff;
    border: 1px solid #ddd;
    margin-bottom: 20px;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-options select {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.view-options button {
    padding: 5px 15px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    border-radius: 4px;
}

.view-options button.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-grid.list-view {
    grid-template-columns: 1fr;
}

.product-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    transition: all 0.3s;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #007bff;
}

.product-card .product-image {
    position: relative;
    margin-bottom: 15px;
}

.product-card .product-image img {
    width: 100%;
    height: 150px;
    object-fit: contain;
}

.product-card .quick-view {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    padding: 10px 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover .quick-view {
    opacity: 1;
}

.product-card .quick-view a {
    color: #fff;
    text-decoration: none;
}

.product-card .product-sku {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.product-card h4 {
    margin: 0 0 10px;
    font-size: 14px;
    height: 40px;
    overflow: hidden;
}

.product-card h4 a {
    color: #333;
    text-decoration: none;
}

.product-card .product-price {
    margin-bottom: 10px;
}

.product-card .product-price .usd {
    font-size: 18px;
    font-weight: bold;
    color: #e74c3c;
}

.product-card .product-price .cny {
    font-size: 12px;
    color: #666;
    margin-left: 10px;
}

.product-card .add-cart-btn {
    width: 100%;
    padding: 10px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.product-card .add-cart-btn:hover {
    background: #0056b3;
}

.pagination {
    text-align: center;
    margin-top: 30px;
}

.cart-float {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 1000;
}

.cart-icon {
    position: relative;
    width: 60px;
    height: 60px;
    background: #e74c3c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 24px;
}

.cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #f39c12;
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
}

.cart-preview {
    position: absolute;
    right: 0;
    bottom: 70px;
    width: 300px;
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.cart-preview h4 {
    margin: 0 0 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
    font-weight: bold;
}

.cart-preview button {
    width: 100%;
    padding: 10px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 15px;
}

.contact-modal {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    width: 300px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.modal-content h3 {
    margin: 0 0 15px;
}

.modal-content input,
.modal-content textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.modal-content textarea {
    height: 100px;
}

.modal-content button {
    width: 100%;
    padding: 10px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.social-links {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.social-links a {
    padding: 5px 10px;
    background: #333;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .catalog-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .auth-box {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .catalog-body {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cart-float {
        right: 10px;
        bottom: 20px;
    }
    
    .contact-modal {
        left: 10px;
        bottom: 100px;
    }
}

.product-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.detail-header {
    margin-bottom: 20px;
}

.detail-header button {
    padding: 10px 20px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.detail-header button:hover {
    background: #e5e5e5;
}

.product-detail {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.product-images {
    flex: 1;
}

.product-images .main-image {
    width: 100%;
    max-width: 500px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.product-images .main-image img {
    width: 100%;
    height: auto;
}

.product-info {
    flex: 1;
}

.product-info .product-sku {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.product-info h1 {
    font-size: 24px;
    margin: 0 0 20px;
}

.product-info .product-price {
    margin-bottom: 20px;
}

.product-info .product-description {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #666;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.quantity-selector button {
    width: 40px;
    height: 40px;
    font-size: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.quantity-selector input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.product-specs {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.product-specs h3 {
    margin: 0 0 15px;
}

.product-specs table {
    width: 100%;
    border-collapse: collapse;
}

.product-specs td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.product-specs td:first-child {
    width: 120px;
    font-weight: bold;
    color: #666;
}

@media (max-width: 768px) {
    .product-detail {
        flex-direction: column;
    }
    
    .product-images .main-image {
        max-width: 100%;
    }
}
