/* ============================================================
   BTP Product Page — btp-pp.css v1.0
   ============================================================ */

/* === MUA NGAY button === */
.btp-buy-now {
    display: block !important;
    width: 100% !important;
    margin-top: 8px !important;
    background: #e74c3c !important;
    color: #fff !important;
    border: none !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    letter-spacing: .3px;
    transition: background .2s, transform .1s !important;
}
.btp-buy-now:hover {
    background: #c0392b !important;
    transform: translateY(-1px);
}
.btp-buy-now:active { transform: translateY(0); }

/* === TRUST BADGES inline === */
.btp-trust-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 4px;
    padding: 14px 16px;
    background: #f7faff;
    border: 1px solid #d0e4ff;
    border-radius: 10px;
}
.btp-trust-item {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 1 1 160px;
    font-size: 13px;
    line-height: 1.35;
    color: #222;
}
.btp-trust-item svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    fill: #0066cc;
}
.btp-trust-item span {
    display: flex;
    flex-direction: column;
}
.btp-trust-item small {
    font-size: 11px;
    color: #666;
    margin-top: 1px;
}

/* === SECTION WRAPPER === */
.btp-pp-section {
    margin: 48px 0 0;
    padding: 0;
    clear: both;
}
.btp-pp-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    margin: 0 0 20px !important;
    padding-bottom: 12px !important;
    border-bottom: 3px solid #0066cc !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}
.btp-pp-icon { font-size: 20px; }

/* === PRODUCT CARDS GRID === */
.btp-pp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 900px) { .btp-pp-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .btp-pp-grid { grid-template-columns: repeat(2, 1fr); } }

.btp-pp-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none !important;
    color: #222 !important;
    transition: box-shadow .2s, transform .2s;
}
.btp-pp-card:hover {
    box-shadow: 0 6px 20px rgba(0,102,204,.13);
    transform: translateY(-3px);
    text-decoration: none !important;
}
.btp-pp-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    background: #f5f5f5;
}
.btp-pp-card-name {
    font-size: 13px;
    line-height: 1.45;
    padding: 8px 10px 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.btp-pp-card-price {
    padding: 4px 10px 12px;
    font-size: 14px;
    font-weight: 700;
    color: #e74c3c;
}
.btp-pp-card-price del {
    color: #aaa;
    font-size: 11px;
    font-weight: 400;
    margin-left: 4px;
}

/* SALE badge trên card */
.btp-sale-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: .5px;
    z-index: 1;
}

/* === BLOG GRID === */
.btp-blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 900px) { .btp-blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .btp-blog-grid { grid-template-columns: 1fr; } }

.btp-blog-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none !important;
    color: #222 !important;
    transition: box-shadow .2s, transform .2s;
}
.btp-blog-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.1);
    transform: translateY(-3px);
}
.btp-blog-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    background: #f0f4f8;
}
.btp-blog-no-img {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, #0066cc22, #0066cc44);
}
.btp-blog-body { padding: 12px 14px 14px; flex: 1; display: flex; flex-direction: column; }
.btp-blog-date { font-size: 11px; color: #999; margin-bottom: 5px; }
.btp-blog-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
    color: #1a1a2e;
}
.btp-blog-excerpt {
    font-size: 12px;
    color: #777;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}
