: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: 22px;
    --tf-transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.tf-category-section {
    margin-bottom: 40px;
}

.tf-category-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Kanit', sans-serif;
    color: var(--tf-primary);
    font-size: 1.4rem;
    margin-bottom: 25px;
}

.tf-category-line {
    height: 4px;
    width: 40px;
    background: var(--tf-primary);
    border-radius: 10px;
}

.tf-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
}

.tf-card {
    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 #f0f0f0;
    display: flex;
    flex-direction: column;
}

.tf-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--tf-shadow-xg);
    border-color: rgba(255, 51, 102, 0.1);
}

.tf-card__image-wrapper {
    position: relative;
    height: 220px;
    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.1);
}

.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);
}

.tf-card:hover .tf-card__overlay {
    opacity: 1;
}

.tf-card__view-text {
    color: white;
    font-weight: 700;
    font-family: 'Kanit';
    border: 2px solid white;
    padding: 8px 16px;
    border-radius: 50px;
}

.tf-card__badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--tf-primary);
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.tf-card__content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tf-card__title {
    font-family: 'Kanit', sans-serif;
    font-size: 1.1rem;
    color: var(--tf-secondary);
    margin: 0 0 15px 0;
    line-height: 1.4;
    cursor: pointer;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tf-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.tf-card__price-tag {
    display: flex;
    align-items: baseline;
    color: var(--tf-primary);
}

.tf-card__currency {
    font-size: 1rem;
    font-weight: 600;
    margin-right: 2px;
}

.tf-card__amount {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
}

.tf-card__add-btn {
    background: var(--tf-secondary);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 15px;
    cursor: pointer;
    transition: var(--tf-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.tf-card__add-btn:hover {
    background: var(--tf-primary);
    transform: rotate(90deg);
}

@media (max-width: 600px) {
    .tf-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .tf-card__image-wrapper {
        height: 160px;
    }
    .tf-card__content {
        padding: 12px;
    }
    .tf-card__amount {
        font-size: 1.2rem;
    }
}