/* vesinh3 — sửa lỗi 10-05: trang chi tiết SP (tpl-nn-product.php), nút giỏ thẻ SP */
.nnsh-act .nn-btn .nn-cart-ic { flex: 0 0 18px; }
.nnsh-act .nn-btn.added::after { display: none; } .nnsh-act a.added_to_cart { display: none; }
.nnpd-page { background: #fff; }
.nnpd-band { padding: 22px 0 4px; } .nnpd-band .nni-crumb { margin: 0; flex-wrap: wrap; }
.nnpd-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; padding-top: 34px; padding-bottom: 56px; align-items: start; }
.nnpd-frame { position: relative; aspect-ratio: 1 / 1; background: var(--nn-soft); border: 1px solid var(--nn-line); border-radius: 18px; display: flex; align-items: center; justify-content: center; padding: 28px; overflow: hidden; }
.nnpd-frame img { width: auto; height: auto; object-fit: contain; display: block; mix-blend-mode: multiply; }
.nnpd-frame i { position: absolute; left: 18px; top: 18px; background: var(--nn-red); color: #fff; font-style: normal; font-size: 14px; font-weight: 700; padding: 5px 12px; border-radius: 6px; }
.nnpd-info { padding-top: 6px; }
.nnpd-title { color: var(--nn-ink) !important; font-size: 40px !important; font-weight: 800 !important; line-height: 1.2 !important; letter-spacing: -.015em; margin: 0 0 16px !important; }
.nnpd-price { color: var(--nn-green); font-size: 30px; font-weight: 800; margin: 0 0 18px; } .nnpd-price del { color: #9AA29D; font-size: 19px; font-weight: 500; margin-right: 10px; } .nnpd-price ins { text-decoration: none; }
.nnpd-short { color: var(--nn-text); font-size: 17.5px; line-height: 1.7; margin: 0 0 22px; } .nnpd-short p { margin: 0 0 10px; }
.nnpd-cart form.cart { display: flex; align-items: stretch; gap: 14px; flex-wrap: wrap; margin: 0 0 24px !important; padding: 20px; background: var(--nn-mint); border-radius: 14px; }
.nnpd-cart .quantity { display: inline-flex; margin: 0 !important; opacity: 1 !important; }
.nnpd-cart .quantity input { height: 52px !important; min-height: 52px; border-color: var(--nn-line) !important; background: #fff !important; box-shadow: none !important; }
.nnpd-cart .quantity .minus, .nnpd-cart .quantity .plus { height: 52px !important; width: 40px !important; background: #fff !important; border-color: var(--nn-line) !important; color: var(--nn-ink) !important; }
.nnpd-cart .single_add_to_cart_button { flex: 1 1 220px; min-height: 52px; margin: 0 !important; background: var(--nn-green) !important; border-radius: 8px !important; font-size: 17px !important; font-weight: 700 !important; text-transform: none !important; letter-spacing: 0 !important; }
.nnpd-ticks { list-style: none; margin: 0 0 20px !important; padding: 0; display: grid; gap: 12px; } .nnpd-ticks li { margin: 0 !important; display: flex; align-items: center; gap: 12px; color: var(--nn-text); font-size: 16.5px; }
.nnpd-ticks li::before { content: ""; flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; background: #3DB45A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/15px no-repeat; }
.nnpd-meta { color: var(--nn-muted); font-size: 15px; border-top: 1px solid var(--nn-line); padding-top: 16px; } .nnpd-meta a { color: var(--nn-green) !important; font-weight: 600; }
.nnpd-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; padding-bottom: 60px; align-items: start; border-top: 1px solid var(--nn-line); padding-top: 48px; }
.nnpd-desc .nn-h2 { font-size: 30px !important; margin: 0 0 18px !important; }
.nnpd-content { color: var(--nn-text); font-size: 17px; line-height: 1.75; } .nnpd-content h2, .nnpd-content h3 { color: var(--nn-ink) !important; font-size: 22px !important; font-weight: 700 !important; margin: 26px 0 12px !important; }
.nnpd-content a { color: var(--nn-green) !important; font-weight: 600; } .nnpd-content img { max-width: 100%; height: auto; border-radius: 12px; }
.nnpd-content ul { margin: 0 0 18px 0 !important; padding: 18px 22px 18px 40px; background: var(--nn-soft); border-radius: 12px; } .nnpd-content li { margin: 0 0 6px !important; }
.nnpd-side { display: grid; gap: 20px; position: sticky; top: 100px; }
.nnpd-box { border: 1px solid var(--nn-line); border-radius: 16px; padding: 24px; background: #fff; box-shadow: 0 4px 16px rgba(20,40,30,.05); }
.nnpd-box h3 { color: var(--nn-ink) !important; font-size: 20px !important; font-weight: 700 !important; margin: 0 0 16px !important; }
.nnpd-why { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--nn-line); } .nnpd-why:first-of-type { border-top: 0; padding-top: 0; }
.nnpd-why .nn-mi { width: 36px; height: 36px; flex: 0 0 36px; } .nnpd-why strong { display: block; color: var(--nn-ink); font-size: 16.5px; } .nnpd-why span { color: var(--nn-muted); font-size: 15px; line-height: 1.55; }
.nnpd-hot { background: var(--nn-dark); border: 0; color: #fff; text-align: center; } .nnpd-hot small { display: block; color: rgba(255,255,255,.8); font-size: 15px; }
.nnpd-hot strong { display: block; color: var(--nn-lime); font-size: 30px; font-weight: 800; margin: 4px 0 2px; } .nnpd-hot span { display: block; color: rgba(255,255,255,.75); font-size: 14.5px; margin: 0 0 16px; } .nnpd-hot .nn-btn { width: 100%; min-height: 48px; font-size: 16px; }
.nnpd-rel { padding-bottom: 64px; } .nnpd-rel .nn-h2 { font-size: 30px !important; margin: 0 0 22px !important; }
@media (max-width: 1099px) { .nnpd-top { gap: 32px; } .nnpd-title { font-size: 32px !important; } .nnpd-body { grid-template-columns: 1fr; } .nnpd-side { position: static; grid-template-columns: 1fr 1fr; } }
@media (max-width: 849px) { .nnpd-top { grid-template-columns: 1fr; padding-top: 20px; padding-bottom: 36px; } .nnpd-frame { aspect-ratio: auto; height: 340px; padding: 18px; } .nnpd-title { font-size: 26px !important; } .nnpd-price { font-size: 24px; }
  .nnpd-short { font-size: 16px; } .nnpd-cart form.cart { padding: 14px; } .nnpd-body { padding-top: 32px; gap: 28px; } .nnpd-side { grid-template-columns: 1fr; } .nnpd-desc .nn-h2, .nnpd-rel .nn-h2 { font-size: 24px !important; } .nnpd-content { font-size: 16px; } .nnpd-content ul { padding: 14px 14px 14px 32px; } }
/* chuyên mục bài viết (tpl-nn-archive.php) */
.nnar-main { padding-top: 44px; padding-bottom: 64px; }
.nnar-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.nnar-card { display: flex; flex-direction: column; border: 1px solid var(--nn-line); } .nnar-card .nnp-card-img { height: auto; aspect-ratio: 16 / 10; }
.nnar-b { padding: 20px 24px 24px; display: flex; flex-direction: column; flex: 1 1 auto; } .nnar-b small { color: var(--nn-muted); font-size: 14.5px; } .nnar-b small i { font-style: normal; margin: 0 8px; color: var(--nn-green); }
.nnar-b h3 { font-size: 21px !important; font-weight: 700 !important; line-height: 1.4 !important; margin: 8px 0 10px !important; } .nnar-b h3 a { color: var(--nn-ink) !important; }
.nnar-b p { color: var(--nn-text); font-size: 16px; line-height: 1.65; margin: 0 0 16px; } .nnar-more { margin-top: auto; color: var(--nn-green) !important; font-weight: 700; } .nnar-more i { font-style: normal; }
.nnar-empty { text-align: center; padding: 40px 20px; background: var(--nn-mint); border-radius: 16px; } .nnar-empty p { color: var(--nn-text); font-size: 17px; }
@media (max-width: 1099px) { .nnar-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 649px) { .nnar-grid { grid-template-columns: 1fr; gap: 20px; } .nnar-main { padding-top: 28px; } }
