/* --- TOP BAR STYLES (No Bootstrap) --- */

/* 1. Logic ẩn/hiện Responsive */
.tb-section {
    display: none; /* Mặc định ẩn trên Mobile/Tablet */
    background-color: transparent; /* Hoặc #d70018 nếu muốn màu đỏ ngay */
    height: 30px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    color: #ffffff;
    overflow: hidden;
}

/* Chỉ hiện trên màn hình PC (rộng hơn 992px) */
@media (min-width: 992px) {
    .tb-section {
        display: block;
    }
}

/* 2. Layout Container (Thay cho .container) */
.tb-container {
    max-width: 1200px; /* Độ rộng chuẩn web */
    margin: 0 auto;    /* Căn giữa */
    height: 100%;
}

/* 3. Flexbox Layout (Thay cho .d-flex .justify-content-between ...) */
.tb-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* 4. Marquee Area */
.tb-marquee-wrapper {
    flex-grow: 1; /* Chiếm hết khoảng trống còn lại */
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    margin-right: 20px; /* Khoảng cách với menu phải */
}

.tb-marquee-content {
    display: inline-block;
    will-change: transform; /* Tối ưu hiệu năng animation */
}

.tb-item {
    font-weight: 500;
}
.tb-item i { margin-right: 5px; }
.tb-dot { margin: 0 15px; opacity: 0.6; }

/* 5. Right Navigation */
.tb-right-nav {
    display: flex;
    align-items: center;
    gap: 15px; /* Khoảng cách giữa các link */
    flex-shrink: 0; /* Không bị co lại khi màn hình hẹp */
}

.tb-link {
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.2s;
}

.tb-link:hover { opacity: 0.8; }
.tb-bold { font-weight: bold; }
.tb-divider { opacity: 0.4; }

#cpsHeader.cps-header.sticky:not(.full) section#top_bar {
    display: none;
}






.cpn-card {
    width: 100%;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    height: 100%;
}

.cpn-card-header {
    display: flex;
    gap: 12px;
    padding: 14px;
}

.cpn-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffeaea;
    color: #e53935;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.cpn-header-text strong {
    font-size: 14px;
}

.cpn-header-text p {
    margin: 4px 0 0;
    font-size: 12px;
    color: #555;
}

.cpn-link {
    color: #e53935;
    text-decoration: none;
    font-weight: 500;
}

.cpn-member-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    margin: 0 14px;
    background: #fff5f5;
    border-radius: 10px;
    color: #e53935;
    font-size: 13px;
    text-decoration: none;
}

.cpn-member-btn i:last-child {
    margin-left: auto;
    font-size: 12px;
}

.cpn-section {
    padding: 12px 14px 14px;
}

.cpn-section-title {
    background: #f3f3f3;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.cpn-sub-title {
    background: #f3f3f3;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 600;
    margin: 12px 0 8px;
}

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

.cpn-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 13px;
    color: #333;
}

.cpn-item i {
    width: 18px;
    color: #e53935;
    text-align: center;
}


.bottom-banner {
    display: flex;
    gap: 10px;
    padding: 10px;
}
.product_note  {
}
.product_note p{
	    background-color: #f2f2f3;
    font-size: 11px;
    margin-bottom: 3px;
    border-radius: 3px;
    padding: 1px 5px;
    color: #333;
}
p.note_1 {
    background-color: #dbe8fe;
    color: #1e478a;
}
p.note_2 {
    background-color: #efe9fe;
    color: #4b3286;
}

.badge-sale {
    background: url(img/discount-badge-ui-2025.webp) no-repeat;
    width: 79px;
    height: 22px;
    text-align: center;
    color: #fff;
    font-size: 11px;
    line-height: 22px;
    top: -7px;
    position: absolute;
    left: 15px;
}
.badge-zero {
    background: url(img/zero-ins-badge-ui-2025.webp) no-repeat;
    width: 79px;
    height: 29px;
    text-align: center;
    color: #3b7ad6;
    font-size: 11px;
    line-height: 22px;
    top: 0px;
    position: absolute;
    right: -10px;
}



.homecat_box .ads img {
    border-radius: 15px;
}

.nk_box {
    width: 100%;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}


.cpn-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
	    padding: 10px;
}

/* ===== ITEM ===== */
.cpn-grid-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 12px;
    text-decoration: none;
    color: #222;
    font-size: 13px;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.cpn-grid-item img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

/* ===== DESKTOP 6 CỘT ===== */
.cpn-grid-item:nth-child(6n) {
    border-right: none;
}
.cpn-grid-item:nth-last-child(-n + 6) {
    border-bottom: none;
}

/* ===== TABLET 4 CỘT ===== */
@media (max-width: 1024px) {
    .cpn-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .cpn-grid-item {
        border-right: 1px solid #eee;
    }

    .cpn-grid-item:nth-child(4n) {
        border-right: none;
    }

    .cpn-grid-item:nth-last-child(-n + 4) {
        border-bottom: none;
    }
}

/* ===== MOBILE 3 CỘT ===== */
@media (max-width: 640px) {
    .cpn-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .cpn-grid-item {
        flex-direction: column;
        text-align: center;
        padding: 14px 8px;
    }

    .cpn-grid-item:nth-child(3n) {
        border-right: none;
    }

    .cpn-grid-item:nth-last-child(-n + 3) {
        border-bottom: none;
    }
}

.cpd-wrap{font-family:Arial,sans-serif;font-size:14px;color:#222}
.cpd-wrap>*{margin-bottom:12px}

.cpd-price{display:flex;border:1px solid #bcd3ff;border-radius:14px;overflow:hidden}
.cpd-price-col{flex:1;padding:12px}
.cpd-price-col strong{font-size:20px;display:block}
.cpd-price-col del{color:#aaa}
.cpd-price-sep{display:flex;align-items:center;padding:0 10px;color:#888;font-size:13px}
.cpd-tag{background:#eaf2ff;padding:4px 8px;border-radius:6px;font-size:12px}
.cpd-sub{font-size:12px;color:#e53935}
.cpd-sub a{color:#3b6cff;text-decoration:none}

.cpd-save{display:flex;justify-content:space-between;align-items:center;
background:#f7f7f7;padding:10px 12px;border-radius:10px}
.cpd-save a{color:#e53935;text-decoration:none}

.cpd-ship{background:#fff;border-radius:10px;padding:12px}
.cpd-ship-row{display:flex;align-items:center;gap:8px;font-size:13px}
.cpd-dot{width:8px;height:8px;border-radius:50%;background:#3b6cff}
.cpd-ship-row em{background:red;color:#fff;font-size:11px;padding:2px 6px;border-radius:6px}

.cpd-store{background:#fff;border-radius:10px;padding:12px}
.cpd-store-head{display:flex;justify-content:space-between;font-size:13px}
.cpd-store-select{display:flex;gap:8px;margin:8px 0}
.cpd-store-select select{flex:1;padding:6px;border-radius:8px;border:1px solid #ddd}
.cpd-store-box{background:#f7f7f7;border-radius:10px;padding:10px;font-size:13px}
.cpd-store-btn{display:flex;gap:10px;margin-top:6px}
.cpd-store-btn a{text-decoration:none;color:#e53935}

.cpd-promo{border:1px solid #bcd3ff;border-radius:14px;padding:12px;background:#f9fcff}
.cpd-promo a{color:#3b6cff;text-decoration:none}

.cpd-action{display:flex;gap:8px}
.cpd-install{border:1px solid #3b6cff;color:#3b6cff;padding:10px;border-radius:10px;text-align:center;flex:1}
.cpd-buy {
    background: linear-gradient(0deg,#d70018,#e45464);
    color: #fff !IMPORTANT;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    flex: 2;
}
.cpd-cart{border:1px solid #e53935;color:#e53935;padding:10px;border-radius:10px;text-align:center;flex:1}

.cpd-trade{display:flex;align-items:center;justify-content:space-between;
background:#ffecec;border-radius:12px;padding:10px}
.cpd-trade a{color:#e53935;text-decoration:none}


.cpd-paybox{
  border:1px solid #bcd3ff;
  border-radius:16px;
  background:#f7fbff;
  padding:14px;
  font-family:Arial,sans-serif;
  font-size:14px;
  color:#222;
}

.cpd-paybox-head{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:600;
  margin-bottom:10px;
}

.cpd-paybox-head i{
  color:#e53935;
}

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

.cpd-paybox-list li{
  display:flex;
  align-items:flex-start;
  gap:8px;
  padding:6px 0;
  line-height:1.4;
}

.cpd-paybox-list li i{
  color:#3bb54a;
  font-size:14px;
  margin-top:2px;
  flex-shrink:0;
}

.cpd-paybox-list img{
  height:18px;
  object-fit:contain;
  margin-right:4px;
  flex-shrink:0;
}









/* GRID */
.cpn-cat-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:24px
}

.cpn-cat-title{
font-size:15px;
font-weight:600;
margin-bottom:10px
}

/* ITEM 2 CỘT TRÁI */
.cpn-cat-item{
display:inline-flex;
align-items:center;
gap:8px;
padding:8px 10px;
border:1px solid #eee;
border-radius:10px;
margin:0 8px 8px 0;
text-decoration:none;
color:#222;
font-size:13px
}

.cpn-cat-item img{
width:26px;
height:26px;
object-fit:contain
}

.cpn-cat-item em{
margin-left:auto;
background:#e53935;
color:#fff;
font-size:11px;
padding:2px 6px;
border-radius:6px;
font-style:normal
}

/* CỘT NỔI BẬT */
.cpn-featured-item{
display:block;
padding:10px 12px;
border:1px solid #eee;
border-radius:8px;
margin-bottom:8px;
text-decoration:none;
font-size:13px;
color:#222
}

.cpn-featured-item:hover,
.cpn-cat-item:hover{
background:#fafafa
}

/* RESPONSIVE */
@media(max-width:1024px){
.cpn-cat-grid{grid-template-columns:repeat(2,1fr)}
}

@media(max-width:640px){
.cpn-cat-grid{grid-template-columns:1fr}
}
