/* product2 board skin */

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

.product-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.product-head h2 { font-size: 28px; font-weight: 900; margin: 0; }
.product-head .count { color: #666; font-size: 14px; white-space: nowrap; }

.product-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0 22px; }
.product-toolbar .cat { display: flex; flex-wrap: wrap; gap: 8px; }
.product-toolbar .cat li { list-style: none; }
.product-toolbar .cat li:first-child { display: none; }
.product-toolbar .cat a { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border: 1px solid #e5e7eb; border-radius: 999px; font-size: 14px; color: #333; background: #fff; }
.product-toolbar .cat a.on { border-color: #2c6ed5; color: #2c6ed5; font-weight: 800; background: #f3f7ff; }
.product-toolbar .search { display: flex; gap: 8px; align-items: center; }
.product-toolbar input[type="text"] { height: 38px; width: 240px; max-width: 45vw; border: 1px solid #e5e7eb; border-radius: 8px; padding: 0 12px; outline: none; }
.product-toolbar button { height: 38px; border: 0; border-radius: 8px; padding: 0 14px; background: #111; color: #fff; font-weight: 700; cursor: pointer; }
.product-toolbar button:hover { opacity: .9; }

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

.product-card { border: 1px solid #eef0f3; border-radius: 14px; overflow: hidden; background: #fff; transition: transform .12s ease, box-shadow .12s ease; }
.product-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.06); }

.product-thumb { aspect-ratio: 4/3; background: #f7f8fb; display: block; overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.product-body { padding: 14px 14px 16px; }

.product-title { font-size: 16px; font-weight: 900; margin: 0 0 8px; line-height: 1.35; color: #111; }
.product-title a { color: inherit; text-decoration: none; }

.product-type,
.product-ctrl { font-size: 13px; color: #667085; margin: 0 0 4px; }

.product-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.product-tag { font-size: 12px; color: #2c6ed5; background: #eef5ff; border-radius: 999px; padding: 5px 10px; font-weight: 700; }

.product-cta { margin-top: 12px; display: flex; flex-direction: row-reverse; }
.product-cta .btn-view { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: #111; color: #fff; }

.product-empty { padding: 60px 0; text-align: center; color: #666; border: 1px dashed #e5e7eb; border-radius: 14px; background: #fafafa; }

.product-paging { margin: 28px 0; display: flex; justify-content: center; }
.product-admin { margin: 10px 0 0; display: flex; justify-content: flex-end; gap: 8px; }
.product-admin a { height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border-radius: 10px; background: #2c6ed5; color: #fff; font-weight: 800; font-size: 13px; text-decoration: none; }
.product-admin a.btn-gray { background: #111; }


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

.pv-top { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }

.pv-hero { border: 1px solid #eef0f3; border-radius: 16px; overflow: hidden; }
.main-slider img { width: 100%; height: 325px; object-fit: contain; display: block; }
.thumb-slider div div .slick-slide { border-radius: 15px; padding: 15px; margin: 10px 5px !important; border: 1px solid #eaeaea; }
.thumb-slider div div .slick-slide:last-child { margin: 10px 0 !important; }
.thumb-slider img {height: 80px;object-fit: cover;width: 100%;}

.pv-box { border: 1px solid #eef0f3; border-radius: 16px; background: #fff; padding: 24px; }
.pv-title { font-size: 26px; font-weight: 900; margin: 0 0 10px; line-height: 1.25; color: #111; }
.pv-type { font-size: 15px; color: #374151; font-weight: 600; margin: 0 0 4px; }
.pv-ctrl { font-size: 14px; color: #667085; margin: 0 0 14px; }

.pv-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.pv-chips .chip { font-size: 12px; font-weight: 800; color: #2c6ed5; background: #eef5ff; border-radius: 999px; padding: 7px 12px; }

.pv-actions { display: flex; gap: 10px; margin-top: 16px; }
.pv-actions a { flex: 1; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: 14px; text-decoration: none; }
.pv-actions .btn-primary {background: #2c6ed5;color: #fff;border: 0;margin-top: 0;}
.pv-actions .btn-outline { border: 1px solid #e5e7eb; color: #111; background: #fff; }
.pv-actions .btn-outline:hover { border-color: #111; }

.pv-detail {margin-top: 28px;border: 1px solid #eef0f3;border-radius: 16px;background: #fff;padding: 28px 32px;display: grid;grid-template-columns: 1fr 1fr;line-height: 1.9;font-size: 15px;color: #333;}
.pv-section--full { grid-column: 1 / -1; }

.pv-detail h2 {font-size: 20px;font-weight: 900;margin: 28px 0 10px;color: #111;}
.pv-detail h2:first-child {margin: 20px 0;font-size: 1.5em!important;}
.pv-detail h3 { font-size: 17px; font-weight: 800; margin: 20px 0 8px; color: #111; }
.pv-detail p { margin: 0 0 6px; }
.pv-detail ul { margin: 6px 0 12px; padding-left: 20px; }
.pv-detail ul li { margin-bottom: 4px; }
.pv-detail table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
.pv-detail table th { background: #f7f8fb; font-weight: 800; padding: 10px 14px; border: 1px solid #e5e7eb; text-align: left; color: #374151; }
.pv-detail table td { padding: 10px 14px; border: 1px solid #e5e7eb; color: #111; }
.pv-detail table tr:hover td { background: #fafbff; }
.pv-section {border-bottom:1px solid #dfdfdf; padding-bottom:50px;}
.pv-section:last-child{border:0;}
.pv-section-body{font-size: 0.9em;word-break: keep-all;}
.pv-foot { margin-top: 16px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pv-foot a { height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border-radius: 10px; font-weight: 900; font-size: 13px; text-decoration: none; }
.pv-foot .btn-list { background: #111; color: #fff; }
.pv-foot .btn-edit { background: #2c6ed5; color: #fff; }
.pv-foot .btn-del { background: #ef4444; color: #fff; }


.product-write { max-width: 900px; margin: 60px auto; padding: 0 20px; }
.pw-box { border: 1px solid #eef0f3; border-radius: 16px; background: #fff; padding: 28px; }
.pw-box h2 { margin: 0 0 20px; font-size: 22px; font-weight: 900; }
.pw-row { display: grid; grid-template-columns: 180px 1fr; gap: 10px 16px; align-items: start; margin-bottom: 14px; }
.pw-row label { font-weight: 900; color: #111; padding-top: 10px; }
.pw-row label strong { color: #ef4444; font-weight: 900; margin-left: 4px; }
.pw-row input[type="text"], .pw-row textarea, .pw-row select { width: 100%; border: 1px solid #e5e7eb; border-radius: 10px; padding: 10px 12px; outline: none; font-size: 14px; box-sizing: border-box; }
.pw-row input[type="text"]:focus, .pw-row textarea:focus, .pw-row select:focus { border-color: #2c6ed5; }
.pw-row textarea { min-height: 140px; resize: vertical; }
.pw-help { font-size: 12px; color: #667085; margin-top: 5px; }
.pw-help-editor { margin: -8px 0 14px 196px; font-size: 12px; color: #667085; }
.pw-actions { margin-top: 20px; display: flex; gap: 10px; justify-content: flex-end; }
.pw-actions button, .pw-actions a { height: 44px; border-radius: 12px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: 14px; cursor: pointer; text-decoration: none; }
.pw-actions button { background: #2c6ed5; color: #fff; border: 0; }
.pw-actions a { background: #111; color: #fff; border: 0; }


@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .pv-top { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .product-head { flex-direction: column; align-items: flex-start; }
  .product-toolbar { flex-direction: column; align-items: stretch; }
  .product-toolbar input[type="text"] { width: 100%; max-width: none; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .pw-row { grid-template-columns: 1fr; gap: 6px; }
  .pw-row label { padding-top: 0; }
  .pw-help-editor { margin-left: 0; }
  .pv-detail { padding: 20px; grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
}
