:root {
    --tf-primary: #ff3366;
    --tf-primary-dark: #e02d5a;
    --tf-secondary: #2a2a2a;
    --tf-bg-card: #ffffff;
    --tf-shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --tf-shadow-lg: 0 15px 35px rgba(255, 51, 102, 0.15);
    --tf-shadow-xg: 0 15px 35px rgba(81, 81, 81, 0.15);
    --tf-radius: 8px;
    --tf-transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.tf-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

.tf-card {
    font-family: 'Noto Sans Thai', sans-serif;
    background: var(--tf-bg-card);
    border-radius: var(--tf-radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--tf-shadow-sm);
    transition: var(--tf-transition);
    border: 1px solid #dfdfdf;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 220px; 
    margin: 0 auto;
}

.tf-card__link-wrapper {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tf-card:hover {
    transform: translateY(-5px); 
    box-shadow: var(--tf-shadow-xg);
    border-color: rgba(255, 51, 102, 0.1);
}

.tf-card__image-wrapper {
    position: relative;
    height: 160px; 
    overflow: hidden;
    cursor: pointer;
}

.tf-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.tf-card:hover .tf-card__img {
    transform: scale(1.08);
}

.tf-card__badge-container {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
}

.tf-card__badge-container {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: row;
    gap: 6px;
    z-index: 2;
}

.tf-card__badge {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: var(--tf-secondary);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: var(--tf-transition);
}

.tf-card:hover .tf-card__badge {
    background: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tf-card__badge--hot i {
    color: #333333;
}

.tf-card__badge--fresh i {
    color: #444444;
}

.tf-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 11, 11, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--tf-transition);
    z-index: 1;
}

.tf-card:hover .tf-card__overlay {
    opacity: 1;
}

.tf-card__view-text {
    color: white;
    font-size: 0.85rem; 
    font-weight: 600;
    border: 1.5px solid white;
    padding: 6px 14px; 
    border-radius: 50px;
}

.tf-card__content {
    padding: 12px; 
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tf-card__brand {
    font-size: 0.75rem;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    font-weight: 500;
}

.tf-card__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--tf-secondary);
    line-height: 1.3;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tf-card__description {
    font-size: 0.8rem; 
    color: #777777; 
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tf-card__footer {
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px dashed #ededed;
}

.tf-card__price-wrapper {
    display: flex;
    align-items: baseline;
    color: var(--tf-primary);
}

.tf-card__currency {
    font-size: 0.85rem;
    font-weight: 700;
    margin-right: 2px;
}

.tf-card__amount {
    font-size: 1.2rem;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
}

.tf-card__amount-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--tf-secondary);
}

@media (max-width: 480px) {
    .tf-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .tf-card {
        max-width: 220px; 
        margin: 0 auto;
    }

    .tf-card__image-wrapper {
        height: 140px;
    }

    .tf-card__content {
        padding: 10px;
    }

    .tf-card__title {
        font-size: 0.9rem;
    }

    .tf-card__description {
        font-size: 0.75rem;
        margin-bottom: 8px;
    }

    .tf-card__amount {
        font-size: 1.1rem;
    }
}

@media screen and (min-width: 481px) and (max-width: 820px) {    
    .tf-product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .tf-card {
        max-width: 220px; 
        margin: 0 auto;
    }
}

@media screen and (min-width: 821px) and (max-width: 1200px) {    
    .tf-product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }

    .tf-card {
        max-width: 220px; 
        margin: 0 auto;
    }
}

.no-products-container {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    /* background: #fafafa; */
    border-radius: var(--tf-radius);
    /* border: 1px dashed #dfdfdf; */
    text-align: center;
    min-height: 320px;
}

.no-products-content {
    max-width: 360px;
    margin: 0 auto;
}

.no-products-icon-box {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-products-icon-box .main-icon {
    font-size: 2.2rem;
    color: #cccccc;
}

.no-products-icon-box .sub-icon {
    position: absolute;
    bottom: 4px;
    right: 4px;
    font-size: 1.1rem;
    color: #888888;
    background: #fafafa;
    padding: 3px;
    border-radius: 50%;
}

.no-products-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--tf-secondary);
    margin-bottom: 8px;
}

.no-products-text {
    font-size: 0.85rem;
    color: #777777;
    line-height: 1.5;
    margin-bottom: 24px;
}

.btn-reset-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--tf-secondary);
    color: #ffffff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--tf-shadow-sm);
    transition: var(--tf-transition);
}

.btn-reset-filter:hover {
    background: #111111;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.btn-reset-filter i {
    font-size: 0.8rem;
    transition: transform 0.4s ease;
}

.btn-reset-filter:hover i {
    transform: rotate(-180deg);
}

@media (max-width: 480px) {
    .no-products-container {
        padding: 40px 15px;
        min-height: 280px;
    }
    
    .no-products-title {
        font-size: 1rem;
    }
    
    .no-products-text {
        font-size: 0.8rem;
    }
}