* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #0f1111;
    margin: 0;
    padding: 0;
    font-size: 13px;
    line-height: 1.5;
    background: #eaeded;
}

a {
    color: #007185;
    text-decoration: none;
}

a:hover {
    color: #c45500;
    text-decoration: underline;
}

.yj-header {
    background: #232f3e;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 999;
}

.yj-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.yj-logo {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}

.search-box {
    flex: 1;
    max-width: 600px;
    margin: 0 30px;
    display: flex;
    border-radius: 4px;
    overflow: hidden;
}

.search-input {
    width: 100%;
    padding: 10px;
    border: none;
    font-size: 15px;
    outline: none;
}

.search-btn {
    background: #febd69;
    color: #111;
    border: none;
    padding: 0 20px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-btn:hover {
    background: #f3a847;
}

.header-nav {
    display: flex;
    gap: 20px;
}

.nav-item {
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.badge {
    background: #f90;
    color: #111;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.main-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 15px auto;
    padding: 0 15px;
    display: flex;
    flex-direction: row;
}

.left-sidebar {
    width: 220px;
    flex-shrink: 0;
    margin-right: 20px;
    background: #fff;
    padding: 15px;
    border-radius: 4px;
}

.center-content {
    flex: 1;
    min-width: 0;
}

.box-title {
    background: transparent;
    border: none;
    padding: 0 0 10px 0;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 15px;
    color: #0f1111;
}

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

.cat-list li {
    padding: 6px 0;
}

.cat-list a {
    color: #0f1111;
}

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

.p-card {
    border: 1px solid #ddd;
    padding: 10px;
    background: #fff;
    text-align: left;
    border-radius: 4px;
    transition: transform 0.2s;
}

.p-card:hover {
    transform: translateY(-2px);
    border-color: #ff0000;
}

.p-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
    margin-bottom: 10px;
    border-radius: 2px;
}

.p-name {
    font-size: 12px;
    height: 36px;
    overflow: hidden;
    margin: 8px 0;
    line-height: 1.5;
}

.p-name a {
    color: #333;
    font-weight: bold;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.p-price {
    color: #bf0000;
    font-weight: bold;
    font-size: 16px;
}

.p-tax {
    font-size: 11px;
    color: #666;
    font-weight: normal;
}

.badge-shipping {
    background: #ff0000;
    color: #fff;
    font-size: 10px;
    padding: 1px 4px;
    font-weight: bold;
    border-radius: 2px;
}

.detail-container {
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.product-main-section {
    display: flex;
    flex-direction: row;
}

.gallery-box {
    width: 400px;
    margin-right: 30px;
    flex-shrink: 0;
}

.main-img-large {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.thumb-grid {
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
    gap: 6px;
}

.thumb-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border: 1px solid #ccc;
    cursor: pointer;
    border-radius: 2px;
}

.thumb-img:hover {
    border-color: #ff0000;
}

.buy-box {
    flex: 1;
    min-width: 0;
}

.h1-title {
    font-size: 18px;
    font-weight: bold;
    line-height: 1.4;
    margin: 0 0 10px 0;
    color: #000;
}

.opt-select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    font-size: 13px;
    background: #fff;
    border-radius: 4px;
    outline: none;
}

.opt-select:focus {
    border-color: #ff0000;
}

.cart-btn {
    width: 100%;
    background: #ff0000;
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    transition: background 0.2s;
}

.cart-btn:hover {
    background: #d90000;
}

.p-desc-content {
    line-height: 1.8;
    font-size: 14px;
    padding: 10px;
    background: #fff;
}

.p-desc-content img {
    max-width: 100% !important;
    height: auto !important;
}

.list-item {
    display: flex;
    padding: 15px;
    background: #fff;
    margin-bottom: 10px;
    border: 1px solid #eee;
    border-radius: 4px;
}

.list-img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    margin-right: 20px;
    border: 1px solid #eee;
    border-radius: 2px;
    flex-shrink: 0;
}

.list-right {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.list-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
    line-height: 1.4;
}

.list-title a {
    color: #0033cc;
    text-decoration: none;
}

.list-title a:hover {
    text-decoration: underline;
    color: #ff0000;
}

.pagination-box {
    margin-top: 30px;
    text-align: center;
    background: #f6f6f6;
    padding: 12px;
    border-radius: 4px;
    font-size: 13px;
}

.page-btn {
    padding: 6px 12px;
    border: 1px solid #ccc;
    background: #fff;
    text-decoration: none;
    color: #333;
    border-radius: 3px;
}
 .review-section { margin-top: 40px; border-top: 2px solid #333; padding-top: 20px; background: #fff; }
    .review-summary { background: #fdfdfd; border: 1px solid #eee; padding: 20px; text-align: center; margin-bottom: 20px; border-radius: 4px; }
    .review-summary .stars { color: #ffcc00; font-size: 24px; letter-spacing: 2px; }
    .review-summary .score { font-size: 28px; font-weight: bold; color: #bf0000; margin: 0 10px; }
    .review-item { border-bottom: 1px dashed #ddd; padding: 15px 0; }
    .review-item:last-child { border-bottom: none; }
    .review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
    .review-stars { color: #ffcc00; font-size: 14px; }
    .review-title { font-weight: bold; font-size: 14px; margin-bottom: 5px; color: #111; }
    .review-meta { font-size: 11px; color: #888; }
    .review-content { font-size: 13px; line-height: 1.6; color: #444; }
@media (max-width: 992px) {
    .p-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .main-wrapper {
        flex-direction: column;
    }
    .left-sidebar {
        display: none;
    }
    .search-box {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin: 10px 0 0 0;
    }
    .p-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 10px;
    }
    .p-price {
        font-size: 14px;
    }
    .product-main-section {
        flex-direction: column;
    }
    .gallery-box {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }
    .main-img-large {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
    }
    .thumb-img {
        width: 60px;
        height: 60px;
    }
    .h1-title {
        font-size: 15px;
    }
    .list-item {
        flex-direction: column;
    }
    .list-img {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
        margin-right: 0;
        margin-bottom: 12px;
    }
    .list-title {
        font-size: 13px;
    }
}