:root {
    --tp-pink:   #FC5A8D;
    --tp-dark:   #111111;
    --tp-text:   #555555;
    --tp-bg:     #ffffff;
    --tp-green:  #00A650;
    --tp-font-bn: 'Anek Bangla', sans-serif;
    --tp-font-en: 'Poppins', sans-serif;
}
/* ============================================================
   Shared Product Card (tp-card) — used site-wide:
   Trending / New Arrival / Best Selling / Archive / Related
   ============================================================ */
.tp-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.tp-card {
    background: #ffffff;
    border: 1px solid rgba(252,90,141,0.15);
    border-radius: 14px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 8px 20px rgba(252,90,141,0.12);
    position: relative !important; 
}

.tp-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(252,90,141,0.3);
    border-color: rgba(252,90,141,0.3);
}

.tp-img-wrap {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1; 
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    background: #fdfdfd;
}

.tp-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.tp-card:hover .tp-img-wrap img {
    transform: scale(1.08);
}

.tp-info {
    padding: 12px 4px 4px 4px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: #ffffff;
}

.tp-product-title {
    font-family: var(--tp-font-bn);
    font-size: 16px;
    font-weight: 600;
    color: var(--tp-dark);
    margin: 0 0 8px 0;
    line-height: 1.4;
    height: 2.8em; 
    text-decoration: none !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
    border: none !important;
}

.tp-card:hover .tp-product-title {
    color: var(--tp-pink);
}

.tp-stock-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 166, 80, 0.08);
    color: var(--tp-green);
    font-family: var(--tp-font-en);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 12px;
    align-self: flex-start;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tp-stock-status svg {
    width: 12px;
    height: 12px;
}

.tp-price-wrap {
    margin-bottom: 14px;
    margin-top: auto; 
}

.tp-price-wrap .price {
    font-family: var(--tp-font-en);
    color: var(--tp-pink);
    font-size: 20px;
    font-weight: 800;
    margin: 0;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.tp-price-wrap .price del,
.tp-price-wrap .price del span,
.tp-price-wrap .price del bdi,
.tp-price-wrap .price del .amount {
    text-decoration: line-through !important;
    color: #888888 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.tp-price-wrap ins,
.tp-price-wrap .price ins,
.tp-price-wrap .price ins *,
.tp-price-wrap .price ins span,
.tp-price-wrap .price ins bdi,
.tp-price-wrap .price ins .amount {
    text-decoration: none !important;
    text-decoration-line: none !important;
    color: var(--tp-pink) !important;
    font-weight: 800 !important;
    border: none !important;
    border-bottom: none !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

.tp-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    background: var(--tp-pink);
    color: #ffffff;
    font-family: var(--tp-font-bn);
    font-size: 16px;
    font-weight: 700;
    padding: 10px 0;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    border: none !important;
}

.tp-btn svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
}

.tp-card:hover .tp-btn {
    background: var(--tp-dark);
    box-shadow: 0 5px 15px rgba(17,17,17,0.2);
}

@media (max-width: 1199px) {
    .tp-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 991px) {
    .tp-wrapper { 
        padding: 12px 0 38px 0 !important; 
        margin-top: 0 !important; 
    }
    .tp-title { font-size: 32px; }
    .tp-grid { grid-template-columns: repeat(3, 1fr); gap: 15px; }
}

@media (max-width: 768px) {
    .tp-wrapper { 
        padding: 8px 0 30px 0 !important; 
        margin-top: 0 !important;
    }
    .tp-header { 
        margin-bottom: 18px; 
        align-items: center; 
        flex-direction: row !important; /* হরিজন্টাল লাইন */
        gap: 10px;
    }
    .tp-title { font-size: 20px !important; margin-bottom: 0 !important; line-height: 1.1; }
    .tp-subtitle { font-size: 12px !important; margin-top: 2px !important; }
    
    .tp-view-all { font-size: 12px !important; padding: 6px 14px !important; }
    .tp-view-all svg { width: 14px; height: 14px; }
    
    .tp-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    
    .tp-card { padding: 8px; border-radius: 10px; }
    .tp-info { padding: 10px 2px 2px 2px; }
    .tp-product-title { font-size: 14px; margin-bottom: 6px; height: 2.8em; }
    .tp-stock-status { font-size: 9px; padding: 3px 6px; margin-bottom: 10px; }
    .tp-price-wrap { margin-bottom: 10px; }
    .tp-price-wrap .price { font-size: 16px; gap: 6px; }
    
    .tp-price-wrap .price del,
    .tp-price-wrap .price del span,
    .tp-price-wrap .price del bdi,
    .tp-price-wrap .price del .amount {
        font-size: 12px !important;
    }
    
    .tp-btn { font-size: 14px; padding: 8px 0; border-radius: 6px; gap: 6px; }
    .tp-btn svg { width: 14px; height: 14px; }
}

@media (max-width: 420px) {
    .tp-title { font-size: 18px !important; }
    .tp-subtitle { display: none !important; /* খুব ছোট স্ক্রিনে সাবটাইটেল হাইড */ }
    .tp-grid { gap: 10px; }
}
