* { box-sizing: border-box; }

body {
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif, sans-serif;
    color: #5c5552;
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.8;
    background: #fbf9f6;
}

a { color: #d4a373; text-decoration: none; transition: all 0.3s ease; }
a:hover { color: #b88a5b; }

.yj-header {
    background: #ffffff;
    padding: 20px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 999;
}

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

.yj-logo { font-size: 26px; font-weight: normal; color: #333; font-style: italic; letter-spacing: 1px; }

.search-box { flex: 1; max-width: 450px; margin: 0 40px; display: flex; background: #f5f3f0; border-radius: 30px; overflow: hidden; border: 1px solid transparent; transition: 0.3s; }
.search-box:focus-within { border-color: #d4a373; background: #fff; box-shadow: 0 0 10px rgba(212,163,115,0.1); }
.search-input { width: 100%; padding: 10px 20px; border: none; font-size: 14px; outline: none; background: transparent; color: #5c5552; }
.search-btn { background: #d4a373; color: #fff; border: none; padding: 0 25px; cursor: pointer; font-size: 14px; transition: 0.3s; }
.search-btn:hover { background: #b88a5b; }

.header-nav { display: flex; gap: 25px; }
.nav-item { color: #5c5552; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.badge { background: #f4d3c6; color: #8e6859; padding: 2px 8px; border-radius: 12px; font-size: 11px; }

.main-wrapper { width: 100%; max-width: 1200px; margin: 50px auto; padding: 0 15px; display: flex; flex-direction: row; }
.left-sidebar { width: 220px; flex-shrink: 0; margin-right: 50px; }
.center-content { flex: 1; min-width: 0; }

.box-title { background: transparent; border: none; padding: 0 0 15px 0; font-weight: normal; font-size: 18px; margin-bottom: 25px; color: #333; letter-spacing: 2px; position: relative; }
.box-title::after { content: ""; display: block; width: 40px; height: 2px; background: #d4a373; margin-top: 8px; }
.cat-list { list-style: none; padding: 0; margin: 0 0 40px 0; }
.cat-list li { padding: 10px 0; }
.cat-list a { color: #5c5552; }
.cat-list a:hover { color: #d4a373; padding-left: 5px; }

.p-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-gap: 25px; }
.p-card { border: none; padding: 0; background: #fff; text-align: center; transition: all 0.4s ease; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); overflow: hidden; padding-bottom: 20px; }
.p-card:hover { transform: translateY(-8px); box-shadow: 0 12px 25px rgba(0,0,0,0.08); }
.p-card img { width: 100%; height: auto; aspect-ratio: 1/1; object-fit: cover; }
.p-name { font-size: 14px; height: 42px; overflow: hidden; margin: 15px 15px 5px; line-height: 1.5; font-family: sans-serif; }
.p-name a { color: #5c5552; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.p-price { color: #d4a373; font-weight: normal; font-size: 18px; }
.p-tax { font-size: 12px; color: #a39c99; }
.badge-shipping { background: #f5f3f0; color: #8e6859; font-size: 11px; padding: 3px 8px; border-radius: 12px; margin-top: 5px; display: inline-block; }

.detail-container { background: #fff; padding: 40px; border: none; border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,0.04); }
.product-main-section { display: flex; flex-direction: row; }
.gallery-box { width: 450px; margin-right: 50px; flex-shrink: 0; }
.main-img-large { width: 450px; height: 450px; object-fit: cover; border: none; border-radius: 12px; background: #fcfcfc; }
.thumb-grid { display: flex; flex-wrap: wrap; margin-top: 15px; gap: 12px; }
.thumb-img { width: 80px; height: 80px; object-fit: cover; border: 2px solid transparent; cursor: pointer; border-radius: 8px; transition: 0.3s; opacity: 0.7; }
.thumb-img:hover, .thumb-img.active { border-color: #d4a373; opacity: 1; }
.buy-box { flex: 1; min-width: 0; padding-top: 10px; }

.h1-title { font-size: 24px; font-weight: normal; line-height: 1.4; margin: 0 0 20px 0; color: #333; }
.opt-select { width: 100%; padding: 14px 20px; margin-bottom: 25px; border: 1px solid #eaeaea; font-size: 14px; background: #faf9f8; border-radius: 8px; outline: none; transition: 0.3s; color: #5c5552; }
.opt-select:focus { border-color: #d4a373; background: #fff; }
.cart-btn { width: 100%; background: #d4a373; color: #fff; border: none; padding: 18px; font-size: 16px; border-radius: 30px; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 8px 20px rgba(212,163,115,0.3); }
.cart-btn:hover { background: #c69564; transform: translateY(-2px); box-shadow: 0 12px 25px rgba(212,163,115,0.4); }

.p-desc-content { line-height: 2; font-size: 15px; padding: 30px; background: #fff; border-radius: 12px; margin-top: 40px; color: #666; font-family: sans-serif; box-shadow: 0 4px 20px rgba(0,0,0,0.02); }
.p-desc-content img { max-width: 100% !important; height: auto !important; border-radius: 8px; }

.list-item { display: flex; padding: 25px; background: #fff; margin-bottom: 20px; border: none; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); transition: 0.3s; }
.list-item:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.06); }
.list-img { width: 180px; height: 180px; object-fit: cover; margin-right: 30px; border-radius: 8px; flex-shrink: 0; }
.list-right { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.list-title { font-size: 18px; font-weight: normal; margin-bottom: 12px; line-height: 1.5; }

.pagination-box { margin-top: 50px; text-align: center; padding: 20px; font-size: 14px; }
.page-btn { padding: 10px 20px; border: none; background: #fff; text-decoration: none; color: #5c5552; border-radius: 30px; transition: 0.3s; margin: 0 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.page-btn:hover { background: #d4a373; color: #fff; }
 .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: 768px) {
    .main-wrapper { flex-direction: column; margin: 20px auto; }
    .left-sidebar { display: none; }
    .search-box { order: 3; width: 100%; max-width: 100%; margin: 15px 0 0 0; }
    .p-grid { grid-template-columns: repeat(2, 1fr); grid-gap: 15px; }
    .product-main-section { flex-direction: column; }
    .gallery-box { width: 100%; margin-right: 0; margin-bottom: 30px; }
    .main-img-large { width: 100%; height: auto; aspect-ratio: 1/1; }
    .detail-container { padding: 20px; }
    .list-item { flex-direction: column; padding: 15px; }
    .list-img { width: 100%; height: auto; aspect-ratio: 1/1; margin-right: 0; margin-bottom: 20px; }
}